diff --git a/Items/ExhumedItem.cs b/Items/ExhumedItem.cs new file mode 100644 index 0000000000..219f77519d --- /dev/null +++ b/Items/ExhumedItem.cs @@ -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); + } +} diff --git a/Items/Weapons/Magic/GruesomeEminence.cs b/Items/Weapons/Magic/GruesomeEminence.cs index 684c53dd65..e4a64b95a0 100644 --- a/Items/Weapons/Magic/GruesomeEminence.cs +++ b/Items/Weapons/Magic/GruesomeEminence.cs @@ -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() diff --git a/Items/Weapons/Magic/Rancor.cs b/Items/Weapons/Magic/Rancor.cs index 67dcea1045..f69ac44ac2 100644 --- a/Items/Weapons/Magic/Rancor.cs +++ b/Items/Weapons/Magic/Rancor.cs @@ -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() diff --git a/Items/Weapons/Summon/CindersOfLament.cs b/Items/Weapons/Summon/CindersOfLament.cs index 44d8fc9f3c..f6ce0b83c8 100644 --- a/Items/Weapons/Summon/CindersOfLament.cs +++ b/Items/Weapons/Summon/CindersOfLament.cs @@ -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() diff --git a/Items/Weapons/Summon/Metastasis.cs b/Items/Weapons/Summon/Metastasis.cs index 6f8e1fbdf2..e27c0498ec 100644 --- a/Items/Weapons/Summon/Metastasis.cs +++ b/Items/Weapons/Summon/Metastasis.cs @@ -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() diff --git a/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson index e2d6cd7e43..09d62b1f95 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson @@ -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.'" diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index 4e2b2e3f22..c3a9f6b1c0 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -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.' ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 50131e4b99..f60e9dc57e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -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.' ''' }