Added an ExhumedItem class for exhumed item extended flavor tooltips
* Cinders of Lament, Gruesome Eminence, Metastasis, and Rancor use this class * Implemented the new flavor tooltips written by Rebecca and enamoured
This commit is contained in:
1 parent
731272def9
commit
9d1213a8a3
8 files changed
+54
-12
No files matched your search
@@ -0,0 +1,20 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items
|
||||
{
|
||||
// Note the lack of ILocalizedModType.
|
||||
// Unfortunately, since all exhumed items do not use the same localization category, ILocalizedModType must be placed on each individual item file.
|
||||
public abstract class ExhumedItem : ModItem, IHoldShiftTooltipItem
|
||||
{
|
||||
// All exhumed items use the same extension indicator tooltip.
|
||||
// This is given a null color, as it is colored manually.
|
||||
public string ExtensionIndicatorKey => "Items.Misc.ExhumeShortTooltip";
|
||||
public Color? ExtensionIndicatorColor => null;
|
||||
|
||||
// All full flavor tooltips use the same localization key.
|
||||
// All full tooltips also use the same color: #C61B40. This is the standard tooltip color for Calamitas text.
|
||||
public string TooltipExtensionKey => "Calamitas";
|
||||
public Color? TooltipExtensionColor => new(198, 27, 64);
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
public class GruesomeEminence : ModItem, ILocalizedModType
|
||||
public class GruesomeEminence : ExhumedItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Magic";
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -8,7 +8,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
public class Rancor : ModItem, ILocalizedModType
|
||||
public class Rancor : ExhumedItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Magic";
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -8,7 +8,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
public class CindersOfLament : ModItem, ILocalizedModType
|
||||
public class CindersOfLament : ExhumedItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Summon";
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -8,7 +8,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
public class Metastasis : ModItem, ILocalizedModType
|
||||
public class Metastasis : ExhumedItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Summon";
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -321,6 +321,12 @@ VoodooDemonVoodooDoll: {
|
||||
}
|
||||
|
||||
// Uncategorized
|
||||
ExhumeShortTooltip:
|
||||
'''
|
||||
[c/C61B40:'Ah, are you curious what I saw within this item?']
|
||||
[c/BABABA:Press "Left Shift" to listen]
|
||||
'''
|
||||
|
||||
AlicornonaStick: {
|
||||
DisplayName: Alicorn on a Stick
|
||||
Tooltip: "'Congratulations, you're winner! Here's my head on a stick.'"
|
||||
|
||||
@@ -393,8 +393,12 @@ GruesomeEminence: {
|
||||
'''
|
||||
Summons a gaseous conglomeration of spirits near the cursor that fly around wildly
|
||||
Over time, the spirits accumulate to create a single, controllable monstrosity
|
||||
[c/C61B40:'The spirits of the amalgam could never pass on to their desired afterlife,]
|
||||
[c/C61B40:Tainted and melded by rage as they were.']
|
||||
'''
|
||||
Calamitas:
|
||||
'''
|
||||
'Many will tell you that Yharim fell from grace as his Crusade went on, but that's far from the truth.
|
||||
Sure, he was a good man when he was killing assassins drunk on power, but even as he dethroned dictators, entire kingdoms were leveled alongside.
|
||||
I wish more people could bear witness to this "Polterghast". Maybe then, they would understand the pain he caused for the world.'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -682,8 +686,12 @@ Rancor: {
|
||||
'''
|
||||
Casts a magic circle that charges energy and eventually releases a powerful laser burst of controlled maleficent magic
|
||||
The laser causes arms and searing lava to appear on surfaces it touches
|
||||
[c/C61B40:'Forgiveness can only heal so much,]
|
||||
[c/C61B40:If the recipient has not yet forgiven themselves.']
|
||||
'''
|
||||
Calamitas:
|
||||
'''
|
||||
'Yharim told me it was Otonilou who unleashed the Brimstone Elemental unto Azafure.
|
||||
I believed him at the time, being a child looking for someone to blame for all her woes.
|
||||
So I unleashed upon them all the fury and scorn I thought they deserved, and only once it was too late did I see through his lies.'
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -154,8 +154,12 @@ CindersOfLament: {
|
||||
Summons either Cataclysm or Catastrophe at the mouse position
|
||||
They will look at you for a moment before charging at you
|
||||
They can do damage to both you and enemies
|
||||
[c/C61B40:'The Witch, a sinner of her own making,]
|
||||
[c/C61B40:Within her mind her demon lies, ever patient, until the end of time.']
|
||||
'''
|
||||
Calamitas:
|
||||
'''
|
||||
'My brothers perished in Azafure. I found their bodies near the center of the city, after they left for an expedition.
|
||||
Before my power was what it is now, they were always alongside me and didn't allow anyone to harm me. It may have been a problem sometimes, but they were surprisingly obedient.
|
||||
And even after all that's happened, and even in death, they still look out for me. Isn't that sweet of them?'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -523,8 +527,12 @@ Metastasis: {
|
||||
When too many hearts are present, it will interrupt attacking to attack the hearts instead
|
||||
This happens more frequently depending on how many hearts are present
|
||||
Requires 4 minion slots to use and can only be summoned once
|
||||
[c/C61B40:A contemplated possible future of the cosmic serpent,]
|
||||
[c/C61B40:A gruesome warning for those blinded by the hunger for power.]
|
||||
'''
|
||||
Calamitas:
|
||||
'''
|
||||
'When I joined Yharim's ranks, the Devourer was one of the first to greet me. He seemed kind at first, but that mask did not last long.
|
||||
He was arrogant, disrespectful and shady. If you hadn't killed him, I would've.
|
||||
I made my Sepulcher as a mockery of his arrogance, but it seems the insult fell flat. You can add "slime-brained" to his list of fabricated titles.'
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user