From 84db7680ccc69269a64ac5bb0e80c373d3dda461 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 16 Feb 2020 14:08:07 -0500 Subject: [PATCH] hot/cold tooltips lole haha death --- Buffs/CalamityGlobalBuff.cs | 13 ++++ CalPlayer/CalamityPlayerMiscEffects.cs | 4 +- Items/Accessories/AmbrosialAmpoule.cs | 3 +- Items/Accessories/AngelTreads.cs | 3 +- Items/Accessories/BlazingCore.cs | 3 +- Items/Accessories/ElementalGauntlet.cs | 3 +- Items/Accessories/FrigidBulwark.cs | 3 +- Items/Accessories/FrostBarrier.cs | 3 +- Items/Accessories/FrostFlare.cs | 1 + Items/Accessories/PermafrostsConcoction.cs | 3 +- Items/Accessories/RampartofDeities.cs | 3 +- Items/Accessories/Sponge.cs | 3 +- Items/Accessories/TheAmalgam.cs | 3 +- Items/Accessories/TheCamper.cs | 1 + Items/Accessories/Vanity/Popo.cs | 1 + Items/Accessories/VoidofExtinction.cs | 3 +- Items/Accessories/Wings/CelestialTracers.cs | 3 +- Items/Accessories/Wings/ElysianTracers.cs | 3 +- Items/Accessories/Wings/ElysianWings.cs | 4 +- Items/Accessories/Wings/InfinityBoots.cs | 3 +- Items/Accessories/Wings/SoulofCryogen.cs | 3 +- Items/Accessories/YharimsInsignia.cs | 3 +- Items/Armor/AtaxiaHeadgear.cs | 3 +- Items/Armor/AtaxiaHelm.cs | 3 +- Items/Armor/AtaxiaHelmet.cs | 3 +- Items/Armor/AtaxiaHood.cs | 3 +- Items/Armor/AtaxiaMask.cs | 3 +- Items/Armor/AuricTeslaBodyArmor.cs | 3 +- Items/Armor/BloodflareHelm.cs | 3 +- Items/Armor/BloodflareHelmet.cs | 3 +- Items/Armor/BloodflareHornedHelm.cs | 3 +- Items/Armor/BloodflareHornedMask.cs | 3 +- Items/Armor/BloodflareMask.cs | 3 +- Items/Armor/FearmongerGreathelm.cs | 3 +- Items/Armor/SilvaHelm.cs | 3 +- Items/Armor/SilvaHelmet.cs | 3 +- Items/Armor/SilvaHornedHelm.cs | 3 +- Items/Armor/SilvaMask.cs | 3 +- Items/Armor/SilvaMaskedCap.cs | 3 +- Items/Armor/TarragonHelm.cs | 1 + Items/Armor/TarragonHelmet.cs | 3 +- Items/Armor/TarragonHornedHelm.cs | 3 +- Items/Armor/TarragonMask.cs | 3 +- Items/Armor/TarragonVisage.cs | 3 +- Items/Armor/XerocMask.cs | 1 + Items/CalamityGlobalItem.cs | 68 +++++++++++++++++++-- 46 files changed, 159 insertions(+), 46 deletions(-) diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs index 432f1e31a4..661a30c7b2 100644 --- a/Buffs/CalamityGlobalBuff.cs +++ b/Buffs/CalamityGlobalBuff.cs @@ -1,3 +1,4 @@ +using CalamityMod.Buffs.StatBuffs; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; @@ -107,9 +108,21 @@ namespace CalamityMod.Buffs else if (type == BuffID.CursedInferno && CalamityWorld.revenge) tip += ". All damage taken increased by 20%"; else if (type == BuffID.Warmth) + { tip += ". Immunity to the Chilled, Frozen, and Glacial State debuffs"; + if (CalamityWorld.death) + tip += ". Provides cold protection in Death Mode"; + } else if (type == BuffID.Invisibility) tip += ". Grants rogue bonuses while holding certain rogue weapons"; + else if (type == BuffID.ObsidianSkin && CalamityWorld.death) + tip += ". Provides heat protection in Death Mode"; + else if (type == BuffID.Inferno && CalamityWorld.death) + tip += ". Provides cold protection in Death Mode"; + else if (type == BuffID.Campfire && CalamityWorld.death) + tip += ". Provides cold protection in Death Mode"; + else if (type == ModContent.BuffType() && CalamityWorld.death) + tip += ". Provides cold protection in Death Mode"; else if (type == ModContent.BuffType()) { Player player = Main.player[Main.myPlayer]; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 510cb74b7c..b666197602 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -378,12 +378,12 @@ namespace CalamityMod.CalPlayer && (player.legs == ArmorIDs.Legs.EskimoPants || player.legs == ArmorIDs.Legs.PinkEskimoPants); bool immunityToHotAndCold = hasMoltenSet || player.magmaStone || player.frostArmor || modPlayer.fBulwark || modPlayer.fBarrier || - modPlayer.frostFlare || modPlayer.rampartOfDeities || modPlayer.cryogenSoul || modPlayer.snowman || modPlayer.blazingCore; + modPlayer.frostFlare || modPlayer.rampartOfDeities || modPlayer.cryogenSoul || modPlayer.snowman || modPlayer.blazingCore || modPlayer.permafrostsConcoction; bool immunityToCold = player.HasBuff(BuffID.Campfire) || Main.campfire || player.resistCold || hasEskimoSet || player.buffImmune[BuffID.Frozen] || player.HasBuff(BuffID.Inferno) || immunityToHotAndCold || modPlayer.externalColdImmunity; - bool immunityToHot = player.lavaImmune || player.lavaRose || player.lavaMax != 0 || immunityToHotAndCold || modPlayer.externalHeatImmunity; + bool immunityToHot = player.lavaImmune || player.lavaRose || player.lavaMax > 0 || immunityToHotAndCold || modPlayer.externalHeatImmunity; // Thorn and spike effects // 10 = crimson/corruption thorns, 17 = jungle thorns, 40 = dungeon spikes, 60 = temple spikes diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index e8d17891f0..bf85d5e999 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -16,7 +16,8 @@ namespace CalamityMod.Items.Accessories "5% increased damage reduction and increased life regen\n" + "Poison, Freeze, Chill, Frostburn, and Venom immunity\n" + "Honey-like life regen with no speed penalty\n" + - "Most bee/hornet enemies and projectiles do 75% damage to you"); + "Most bee/hornet enemies and projectiles do 75% damage to you\n" + + "Provides cold protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/AngelTreads.cs b/Items/Accessories/AngelTreads.cs index 39f42f65e2..780edb5426 100644 --- a/Items/Accessories/AngelTreads.cs +++ b/Items/Accessories/AngelTreads.cs @@ -15,7 +15,8 @@ namespace CalamityMod.Items.Accessories Tooltip.SetDefault("Extreme speed!\n" + "Greater mobility on ice\n" + "Water and lava walking\n" + - "Temporary immunity to lava"); + "Temporary immunity to lava\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/BlazingCore.cs b/Items/Accessories/BlazingCore.cs index 12c68e0199..0e9da8d3ff 100644 --- a/Items/Accessories/BlazingCore.cs +++ b/Items/Accessories/BlazingCore.cs @@ -15,7 +15,8 @@ namespace CalamityMod.Items.Accessories "Being hit creates a miniature sun that lingers, dealing damage to nearby enemies\n" + "The sun will slowly drag enemies into it\n" + "Only one sun can be active at once\n" + - "Provides a moderate amount of light in the Abyss"); + "Provides a moderate amount of light in the Abyss\n" + + "Provides heat and cold protection in Death Mode"); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 6)); } diff --git a/Items/Accessories/ElementalGauntlet.cs b/Items/Accessories/ElementalGauntlet.cs index f8c1323cf3..695804b640 100644 --- a/Items/Accessories/ElementalGauntlet.cs +++ b/Items/Accessories/ElementalGauntlet.cs @@ -17,7 +17,8 @@ namespace CalamityMod.Items.Accessories "Increased invincibility after taking damage\n" + "Temporary immunity to lava\n" + "Increased melee knockback\n" + - "Melee attacks have a chance to instantly kill normal enemies"); + "Melee attacks have a chance to instantly kill normal enemies\n" + + "Provides heat and cold protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/FrigidBulwark.cs b/Items/Accessories/FrigidBulwark.cs index 4236c4d50e..c1caa2ffaa 100644 --- a/Items/Accessories/FrigidBulwark.cs +++ b/Items/Accessories/FrigidBulwark.cs @@ -15,7 +15,8 @@ namespace CalamityMod.Items.Accessories "Only active above 25% life\n" + "Grants immunity to knockback\n" + "Puts a shell around the owner when below 50% life that reduces damage\n" + - "The shell becomes more powerful when below 15% life and reduces damage even further"); + "The shell becomes more powerful when below 15% life and reduces damage even further\n" + + "Provides heat and cold protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/FrostBarrier.cs b/Items/Accessories/FrostBarrier.cs index 3ba5feaef2..c837bc76fc 100644 --- a/Items/Accessories/FrostBarrier.cs +++ b/Items/Accessories/FrostBarrier.cs @@ -10,7 +10,8 @@ namespace CalamityMod.Items.Accessories { DisplayName.SetDefault("Frost Barrier"); Tooltip.SetDefault("You will freeze enemies near you when you are struck\n" + - "You are immune to the chilled debuff"); + "You are immune to the chilled debuff\n" + + "Provides heat and cold protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/FrostFlare.cs b/Items/Accessories/FrostFlare.cs index 082a8bf0bc..b9b8a24c37 100644 --- a/Items/Accessories/FrostFlare.cs +++ b/Items/Accessories/FrostFlare.cs @@ -15,6 +15,7 @@ namespace CalamityMod.Items.Accessories "Resistant to cold attacks and +1 life regen\n" + "Being above 75% life grants the player 10% increased damage\n" + "Being below 25% life grants the player 10 defense and 15% increased max movement speed and acceleration\n" + + "Provides heat and cold protection in Death Mode\n" + "Revengeance drop"); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 10)); } diff --git a/Items/Accessories/PermafrostsConcoction.cs b/Items/Accessories/PermafrostsConcoction.cs index 05db6c03ec..bd0ce51854 100644 --- a/Items/Accessories/PermafrostsConcoction.cs +++ b/Items/Accessories/PermafrostsConcoction.cs @@ -12,7 +12,8 @@ namespace CalamityMod.Items.Accessories Increases life regen as life decreases Increases life regen when afflicted with Poison, On Fire, or Brimstone Flames You will survive fatal damage and revive with 30% life on a 3 minute cooldown -You are encased in an ice barrier for 3 seconds when revived"); +You are encased in an ice barrier for 3 seconds when revived +Provides heat and cold protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/RampartofDeities.cs b/Items/Accessories/RampartofDeities.cs index a428bc8ee8..b7a2b1ab91 100644 --- a/Items/Accessories/RampartofDeities.cs +++ b/Items/Accessories/RampartofDeities.cs @@ -19,7 +19,8 @@ namespace CalamityMod.Items.Accessories "Only active above 25% life\n" + "Grants immunity to knockback and reduces the cooldown of healing potions\n" + "Puts a shell around the owner when below 50% life that reduces damage\n" + - "The shell becomes more powerful when below 15% life and reduces damage even further"); + "The shell becomes more powerful when below 15% life and reduces damage even further\n" + + "Provides heat and cold protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/Sponge.cs b/Items/Accessories/Sponge.cs index 67036ef7b7..2d224c6eb9 100644 --- a/Items/Accessories/Sponge.cs +++ b/Items/Accessories/Sponge.cs @@ -23,7 +23,8 @@ namespace CalamityMod.Items.Accessories "Enemies take damage when they hit you\n" + "Taking a hit will make you move very fast for a short time\n" + "You emit a mushroom spore and spark explosion when you are hit\n" + - "Enemy attacks will have part of their damage absorbed and used to heal you"); + "Enemy attacks will have part of their damage absorbed and used to heal you\n" + + "Provides cold protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index de070c05d3..f6a6845df5 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -32,7 +32,8 @@ namespace CalamityMod.Items.Accessories "Summons a fungal clump to fight for you\n" + "You leave behind poisonous seawater as you move\n" + "75% increased movement speed, 10% increase to all damage, and plus 40 defense while submerged in liquid\n" + - "If you are damaged while submerged in liquid you will gain a damaging aura for a short time"); + "If you are damaged while submerged in liquid you will gain a damaging aura for a short time\n" + + "Provides heat protection in Death Mode"); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(9, 6)); } diff --git a/Items/Accessories/TheCamper.cs b/Items/Accessories/TheCamper.cs index b9eb4dd93e..cafb22a052 100644 --- a/Items/Accessories/TheCamper.cs +++ b/Items/Accessories/TheCamper.cs @@ -22,6 +22,7 @@ namespace CalamityMod.Items.Accessories "Standing still provides a damaging aura around you\n" + "While moving, you regenerate health as if standing still\n" + "Provides a small amount of light in the Abyss\n" + + "Provides cold protection in Death Mode\n" + "In rest may we find victory."); } diff --git a/Items/Accessories/Vanity/Popo.cs b/Items/Accessories/Vanity/Popo.cs index cdaca98bcf..e918d2aafb 100644 --- a/Items/Accessories/Vanity/Popo.cs +++ b/Items/Accessories/Vanity/Popo.cs @@ -10,6 +10,7 @@ namespace CalamityMod.Items.Accessories.Vanity { DisplayName.SetDefault("Magic Scarf and Hat"); Tooltip.SetDefault("Transforms the holder into a snowman\n" + + "Provides heat and cold protection in Death Mode\n" + "Don't let the demons steal your nose"); } diff --git a/Items/Accessories/VoidofExtinction.cs b/Items/Accessories/VoidofExtinction.cs index 386ad879ec..cc74f210e7 100644 --- a/Items/Accessories/VoidofExtinction.cs +++ b/Items/Accessories/VoidofExtinction.cs @@ -22,7 +22,8 @@ namespace CalamityMod.Items.Accessories "Drops brimstone fireballs from the sky occasionally\n" + "15% increase to all damage\n" + "Brimstone fire rains down while invincibility is active\n" + - "Temporary immunity to lava, greatly reduces lava burn damage, and 25% increased damage while in lava"); + "Temporary immunity to lava, greatly reduces lava burn damage, and 25% increased damage while in lava\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/Wings/CelestialTracers.cs b/Items/Accessories/Wings/CelestialTracers.cs index 085b06cd12..d1356a294f 100644 --- a/Items/Accessories/Wings/CelestialTracers.cs +++ b/Items/Accessories/Wings/CelestialTracers.cs @@ -24,7 +24,8 @@ namespace CalamityMod.Items.Accessories.Wings "Greater mobility on ice\n" + "Water and lava walking\n" + "Temporary immunity to lava\n" + - "Being hit for over 200 damage will make you immune for an extended period of time"); + "Being hit for over 200 damage will make you immune for an extended period of time\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/Wings/ElysianTracers.cs b/Items/Accessories/Wings/ElysianTracers.cs index ead024b476..3c96976b2e 100644 --- a/Items/Accessories/Wings/ElysianTracers.cs +++ b/Items/Accessories/Wings/ElysianTracers.cs @@ -22,7 +22,8 @@ namespace CalamityMod.Items.Accessories.Wings "Ludicrous speed!\n" + "Greater mobility on ice\n" + "Water and lava walking\n" + - "Temporary immunity to lava"); + "Temporary immunity to lava\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/Wings/ElysianWings.cs b/Items/Accessories/Wings/ElysianWings.cs index b375fa6675..75d1eaffc3 100644 --- a/Items/Accessories/Wings/ElysianWings.cs +++ b/Items/Accessories/Wings/ElysianWings.cs @@ -13,7 +13,9 @@ namespace CalamityMod.Items.Accessories.Wings Tooltip.SetDefault("Horizontal speed: 9.75\n" + "Acceleration multiplier: 2.5\n" + "Great vertical speed\n" + - "Flight time: 180"); + "Flight time: 180\n" + + "Temporary immunity to lava\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/Wings/InfinityBoots.cs b/Items/Accessories/Wings/InfinityBoots.cs index c045026cbc..bd1d3d56b2 100644 --- a/Items/Accessories/Wings/InfinityBoots.cs +++ b/Items/Accessories/Wings/InfinityBoots.cs @@ -22,7 +22,8 @@ namespace CalamityMod.Items.Accessories.Wings "Ludicrous speed!\n" + "Greater mobility on ice\n" + "Water and lava walking\n" + - "Temporary immunity to lava"); + "Temporary immunity to lava\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Accessories/Wings/SoulofCryogen.cs b/Items/Accessories/Wings/SoulofCryogen.cs index 44e1e470fd..f3125c5d18 100644 --- a/Items/Accessories/Wings/SoulofCryogen.cs +++ b/Items/Accessories/Wings/SoulofCryogen.cs @@ -18,7 +18,8 @@ namespace CalamityMod.Items.Accessories.Wings "Average vertical speed\n" + "Flight time: 100\n" + "5% increase to all damage and pick speed\n" + - "All melee attacks and projectiles inflict frostburn"); + "All melee attacks and projectiles inflict frostburn\n" + + "Provides heat and cold protection in Death Mode"); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(8, 4)); } diff --git a/Items/Accessories/YharimsInsignia.cs b/Items/Accessories/YharimsInsignia.cs index 9773e7caf8..bdfd75b9c4 100644 --- a/Items/Accessories/YharimsInsignia.cs +++ b/Items/Accessories/YharimsInsignia.cs @@ -17,7 +17,8 @@ namespace CalamityMod.Items.Accessories "Melee attacks and melee projectiles inflict holy fire\n" + "Increased invincibility after taking damage\n" + "Temporary immunity to lava\n" + - "Increased melee knockback"); + "Increased melee knockback\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/AtaxiaHeadgear.cs b/Items/Armor/AtaxiaHeadgear.cs index 7c9a613c41..e7e3fbee72 100644 --- a/Items/Armor/AtaxiaHeadgear.cs +++ b/Items/Armor/AtaxiaHeadgear.cs @@ -13,7 +13,8 @@ namespace CalamityMod.Items.Armor { DisplayName.SetDefault("Ataxia Headgear"); Tooltip.SetDefault("12% increased ranged damage and 10% increased ranged critical strike chance\n" + - "Reduces ammo usage by 25%, temporary immunity to lava, and immunity to fire damage"); + "Reduces ammo usage by 25%, temporary immunity to lava, and immunity to fire damage\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/AtaxiaHelm.cs b/Items/Armor/AtaxiaHelm.cs index 266266bb8d..b06118f233 100644 --- a/Items/Armor/AtaxiaHelm.cs +++ b/Items/Armor/AtaxiaHelm.cs @@ -15,7 +15,8 @@ namespace CalamityMod.Items.Armor Tooltip.SetDefault("12% increased melee damage and 10% increased melee critical strike chance\n" + "12% increased melee and movement speed\n" + "Melee attacks and melee projectiles inflict on fire\n" + - "Temporary immunity to lava and immunity to fire damage"); + "Temporary immunity to lava and immunity to fire damage\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/AtaxiaHelmet.cs b/Items/Armor/AtaxiaHelmet.cs index ab154d3abb..36d8469221 100644 --- a/Items/Armor/AtaxiaHelmet.cs +++ b/Items/Armor/AtaxiaHelmet.cs @@ -16,7 +16,8 @@ namespace CalamityMod.Items.Armor DisplayName.SetDefault("Ataxia Helmet"); Tooltip.SetDefault("5% increased minion damage and increased minion knockback\n" + "+2 max minions\n" + - "Temporary immunity to lava and immunity to fire damage"); + "Temporary immunity to lava and immunity to fire damage\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/AtaxiaHood.cs b/Items/Armor/AtaxiaHood.cs index d096a0bf4f..0b1c31928f 100644 --- a/Items/Armor/AtaxiaHood.cs +++ b/Items/Armor/AtaxiaHood.cs @@ -14,7 +14,8 @@ namespace CalamityMod.Items.Armor DisplayName.SetDefault("Ataxia Hood"); Tooltip.SetDefault("12% increased rogue damage and 10% increased rogue critical strike chance\n" + "50% chance to not consume rogue items and 15% increased movement speed\n" + - "Temporary immunity to lava and immunity to fire damage"); + "Temporary immunity to lava and immunity to fire damage\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/AtaxiaMask.cs b/Items/Armor/AtaxiaMask.cs index 46d031a22a..546d6d570e 100644 --- a/Items/Armor/AtaxiaMask.cs +++ b/Items/Armor/AtaxiaMask.cs @@ -13,7 +13,8 @@ namespace CalamityMod.Items.Armor { DisplayName.SetDefault("Ataxia Mask"); Tooltip.SetDefault("12% increased magic damage, reduces mana usage by 15%, and 10% increased magic critical strike chance\n" + - "+100 max mana, temporary immunity to lava, and immunity to fire damage"); + "+100 max mana, temporary immunity to lava, and immunity to fire damage\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/AuricTeslaBodyArmor.cs b/Items/Armor/AuricTeslaBodyArmor.cs index 52b4f7f445..c67b257148 100644 --- a/Items/Armor/AuricTeslaBodyArmor.cs +++ b/Items/Armor/AuricTeslaBodyArmor.cs @@ -18,7 +18,8 @@ namespace CalamityMod.Items.Armor "25% increased movement speed\n" + "Attacks have a 2% chance to do no damage to you\n" + "8% increased damage and 5% increased critical strike chance\n" + - "You will freeze enemies near you when you are struck"); + "You will freeze enemies near you when you are struck\n" + + "Provides heat and cold protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/BloodflareHelm.cs b/Items/Armor/BloodflareHelm.cs index df49a7c161..bebf8ae157 100644 --- a/Items/Armor/BloodflareHelm.cs +++ b/Items/Armor/BloodflareHelm.cs @@ -13,7 +13,8 @@ namespace CalamityMod.Items.Armor { DisplayName.SetDefault("Bloodflare Helm"); Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + - "10% increased rogue damage and critical strike chance, 15% increased movement speed"); + "10% increased rogue damage and critical strike chance, 15% increased movement speed\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/BloodflareHelmet.cs b/Items/Armor/BloodflareHelmet.cs index be9b361942..46671b61ac 100644 --- a/Items/Armor/BloodflareHelmet.cs +++ b/Items/Armor/BloodflareHelmet.cs @@ -13,7 +13,8 @@ namespace CalamityMod.Items.Armor { DisplayName.SetDefault("Bloodflare Helmet"); Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + - "+3 max minions"); + "+3 max minions\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/BloodflareHornedHelm.cs b/Items/Armor/BloodflareHornedHelm.cs index bcf2c00e06..2e23c02168 100644 --- a/Items/Armor/BloodflareHornedHelm.cs +++ b/Items/Armor/BloodflareHornedHelm.cs @@ -13,7 +13,8 @@ namespace CalamityMod.Items.Armor { DisplayName.SetDefault("Bloodflare Horned Helm"); Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + - "10% increased ranged damage and critical strike chance"); + "10% increased ranged damage and critical strike chance\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/BloodflareHornedMask.cs b/Items/Armor/BloodflareHornedMask.cs index ee9bdd9346..03e1e142ef 100644 --- a/Items/Armor/BloodflareHornedMask.cs +++ b/Items/Armor/BloodflareHornedMask.cs @@ -13,7 +13,8 @@ namespace CalamityMod.Items.Armor { DisplayName.SetDefault("Bloodflare Horned Mask"); Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + - "10% increased magic damage and critical strike chance, +100 max mana, and 17% reduced mana usage"); + "10% increased magic damage and critical strike chance, +100 max mana, and 17% reduced mana usage\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/BloodflareMask.cs b/Items/Armor/BloodflareMask.cs index b4fe9fafff..a0d6126416 100644 --- a/Items/Armor/BloodflareMask.cs +++ b/Items/Armor/BloodflareMask.cs @@ -13,7 +13,8 @@ namespace CalamityMod.Items.Armor { DisplayName.SetDefault("Bloodflare Mask"); Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + - "10% increased melee damage and critical strike chance"); + "10% increased melee damage and critical strike chance\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/FearmongerGreathelm.cs b/Items/Armor/FearmongerGreathelm.cs index 39f455b176..0f29533596 100644 --- a/Items/Armor/FearmongerGreathelm.cs +++ b/Items/Armor/FearmongerGreathelm.cs @@ -57,7 +57,8 @@ Minions deal full damage while wielding weaponry Immunity to all forms of frost and flame All minion attacks grant colossal life regeneration 15% increased damage reduction during the Pumpkin and Frost Moons -This extra damage reduction ignores the soft cap"; +This extra damage reduction ignores the soft cap +Provides cold protection in Death Mode"; // This bool encompasses cross-class nerf immunity, colossal life regen on minion attack, and the holiday moon DR player.Calamity().fearmongerSet = true; diff --git a/Items/Armor/SilvaHelm.cs b/Items/Armor/SilvaHelm.cs index 8b60384616..3e3c7331a9 100644 --- a/Items/Armor/SilvaHelm.cs +++ b/Items/Armor/SilvaHelm.cs @@ -49,7 +49,8 @@ namespace CalamityMod.Items.Armor "Your max life will return to normal if you die\n" + "True melee strikes have a 25% chance to do five times damage\n" + "After the silva invincibility is over you will take 20% less contact damage\n" + - "Melee projectiles have a 25% chance to stun enemies for a very brief moment"; + "Melee projectiles have a 25% chance to stun enemies for a very brief moment\n" + + "Provides cold protection in Death Mode"; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/SilvaHelmet.cs b/Items/Armor/SilvaHelmet.cs index bc89429aca..9ad57c7179 100644 --- a/Items/Armor/SilvaHelmet.cs +++ b/Items/Armor/SilvaHelmet.cs @@ -51,7 +51,8 @@ namespace CalamityMod.Items.Armor "This effect only triggers once per life and if you are reduced to 400 max life the invincibility effect will stop\n" + "Your max life will return to normal if you die\n" + "Summons an ancient leaf prism to blast your enemies with life energy\n" + - "After the silva invulnerability time your minions will deal 10% more damage and you will gain +2 max minions"; + "After the silva invulnerability time your minions will deal 10% more damage and you will gain +2 max minions\n" + + "Provides cold protection in Death Mode"; if (player.whoAmI == Main.myPlayer) { if (player.FindBuffIndex(ModContent.BuffType()) == -1) diff --git a/Items/Armor/SilvaHornedHelm.cs b/Items/Armor/SilvaHornedHelm.cs index e950f4b5a3..b6b75bdc0d 100644 --- a/Items/Armor/SilvaHornedHelm.cs +++ b/Items/Armor/SilvaHornedHelm.cs @@ -48,7 +48,8 @@ namespace CalamityMod.Items.Armor "This effect only triggers once per life and if you are reduced to 400 max life the invincibility effect will stop\n" + "Your max life will return to normal if you die\n" + "Increases your rate of fire with all ranged weapons\n" + - "During the silva invulnerability time your ranged weapons will do 40% more damage"; + "During the silva invulnerability time your ranged weapons will do 40% more damage\n" + + "Provides cold protection in Death Mode"; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/SilvaMask.cs b/Items/Armor/SilvaMask.cs index 6feadf5818..65e8c77d23 100644 --- a/Items/Armor/SilvaMask.cs +++ b/Items/Armor/SilvaMask.cs @@ -54,7 +54,8 @@ namespace CalamityMod.Items.Armor "Rogue stealth builds while not attacking and not moving, up to a max of 150\n" + "Once you have built max stealth, you will be able to perform a Stealth Strike\n" + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + - "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed\n" + + "Provides cold protection in Death Mode"; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/SilvaMaskedCap.cs b/Items/Armor/SilvaMaskedCap.cs index 5853096dd1..9e1814096b 100644 --- a/Items/Armor/SilvaMaskedCap.cs +++ b/Items/Armor/SilvaMaskedCap.cs @@ -49,7 +49,8 @@ namespace CalamityMod.Items.Armor "This effect only triggers once per life and if you are reduced to 400 max life the invincibility effect will stop\n" + "Your max life will return to normal if you die\n" + "Magic projectiles have a 10% chance to cause a massive explosion on enemy hits\n" + - "After the silva invulnerability time your magic weapons will do 10% more damage"; + "After the silva invulnerability time your magic weapons will do 10% more damage\n" + + "Provides cold protection in Death Mode"; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/TarragonHelm.cs b/Items/Armor/TarragonHelm.cs index 9484f13214..2c1f2cb1eb 100644 --- a/Items/Armor/TarragonHelm.cs +++ b/Items/Armor/TarragonHelm.cs @@ -16,6 +16,7 @@ namespace CalamityMod.Items.Armor "Can move freely through liquids\n" + "5% increased damage reduction\n" + "10% increased melee damage and critical strike chance\n" + + "Provides heat protection in Death Mode\n" + "Helm of the disciple of ancients"); } diff --git a/Items/Armor/TarragonHelmet.cs b/Items/Armor/TarragonHelmet.cs index 42b57fc274..9d7600ab66 100644 --- a/Items/Armor/TarragonHelmet.cs +++ b/Items/Armor/TarragonHelmet.cs @@ -15,7 +15,8 @@ namespace CalamityMod.Items.Armor Tooltip.SetDefault("Temporary immunity to lava and immunity to cursed inferno, fire, cursed, and chilled debuffs\n" + "Can move freely through liquids and 12% increased movement speed\n" + "10% increased rogue damage and critical strike chance\n" + - "5% increased damage reduction"); + "5% increased damage reduction\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/TarragonHornedHelm.cs b/Items/Armor/TarragonHornedHelm.cs index 8f00660879..351ff9f4dc 100644 --- a/Items/Armor/TarragonHornedHelm.cs +++ b/Items/Armor/TarragonHornedHelm.cs @@ -14,7 +14,8 @@ namespace CalamityMod.Items.Armor DisplayName.SetDefault("Tarragon Horned Helm"); Tooltip.SetDefault("Temporary immunity to lava and immunity to cursed inferno, fire, cursed, and chilled debuffs\n" + "Can move freely through liquids\n" + - "5% increased damage reduction and +3 max minions"); + "5% increased damage reduction and +3 max minions\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/TarragonMask.cs b/Items/Armor/TarragonMask.cs index 5fdfa0eb2c..1e1f9b171c 100644 --- a/Items/Armor/TarragonMask.cs +++ b/Items/Armor/TarragonMask.cs @@ -15,7 +15,8 @@ namespace CalamityMod.Items.Armor Tooltip.SetDefault("Temporary immunity to lava and immunity to cursed inferno, fire, cursed, and chilled debuffs\n" + "Can move freely through liquids\n" + "10% increased magic damage and critical strike chance\n" + - "5% increased damage reduction, +100 max mana, and 15% reduced mana usage"); + "5% increased damage reduction, +100 max mana, and 15% reduced mana usage\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/TarragonVisage.cs b/Items/Armor/TarragonVisage.cs index 43d4223e27..412caff2ad 100644 --- a/Items/Armor/TarragonVisage.cs +++ b/Items/Armor/TarragonVisage.cs @@ -15,7 +15,8 @@ namespace CalamityMod.Items.Armor Tooltip.SetDefault("Temporary immunity to lava and immunity to cursed inferno, fire, cursed, and chilled debuffs\n" + "Can move freely through liquids\n" + "10% increased ranged damage and critical strike chance\n" + - "5% increased damage reduction"); + "5% increased damage reduction\n" + + "Provides heat protection in Death Mode"); } public override void SetDefaults() diff --git a/Items/Armor/XerocMask.cs b/Items/Armor/XerocMask.cs index 3e4e6cae64..d7a6fd9255 100644 --- a/Items/Armor/XerocMask.cs +++ b/Items/Armor/XerocMask.cs @@ -14,6 +14,7 @@ namespace CalamityMod.Items.Armor DisplayName.SetDefault("Xeroc Mask"); Tooltip.SetDefault("11% increased rogue damage and critical strike chance, 22% increased movement speed\n" + "Temporary immunity to lava and immunity to cursed, fire, cursed inferno, and chilled\n" + + "Provides heat protection in Death Mode\n" + "Wrath of the cosmos"); } diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index c4e113d1fb..7154b96ba4 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -785,7 +785,8 @@ namespace CalamityMod.Items if (line2.mod == "Terraria" && line2.Name == "Tooltip0") { line2.text = "Reduces damage from cold sources\n" + - "Makes you immune to the Chilled, Frozen, and Glacial State debuffs"; + "Makes you immune to the Chilled, Frozen, and Glacial State debuffs\n" + + "Provides cold protection in Death Mode"; } } } @@ -805,7 +806,8 @@ namespace CalamityMod.Items { if (line2.mod == "Terraria" && line2.Name == "Tooltip1") { - line2.text = "14% increased melee damage and speed"; + line2.text = "14% increased melee damage and speed\n" + + "Provides heat and cold protection in Death Mode"; } } } @@ -827,7 +829,8 @@ namespace CalamityMod.Items { line2.text = "Provides immunity to direct damage from touching lava\n" + "Provides temporary immunity to lava burn damage\n" + - "Reduces lava burn damage"; + "Reduces lava burn damage\n" + + "Provides heat protection in Death Mode"; } } } @@ -838,7 +841,41 @@ namespace CalamityMod.Items if (line2.mod == "Terraria" && line2.Name == "Tooltip0") { line2.text = "Reduced direct damage from touching lava\n" + - "Greatly reduces lava burn damage"; + "Greatly reduces lava burn damage\n" + + "Provides heat protection in Death Mode"; + } + } + } + if (item.type == ItemID.MagmaStone) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Inflicts fire damage on attack\n" + + "Provides heat and cold protection in Death Mode"; + } + } + } + if (item.type == ItemID.LavaCharm) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Provides 7 seconds of immunity to lava\n" + + "Provides heat protection in Death Mode"; + } + } + } + if (item.type == ItemID.LavaWaders) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + { + line2.text = "Grants immunity to fire blocks and 7 seconds of immunity to lava\n" + + "Provides heat protection in Death Mode"; } } } @@ -1082,7 +1119,19 @@ namespace CalamityMod.Items if (line2.mod == "Terraria" && line2.Name == "SetBonus") { line2.text = @"Set Bonus: 17% extra melee damage -Grants immunity to fire blocks, and temporary immunity to lava"; +Grants immunity to fire blocks, and temporary immunity to lava +Provides heat and cold protection in Death Mode"; + } + } + } + if (item.type == ItemID.FrostHelmet || item.type == ItemID.FrostBreastplate || item.type == ItemID.FrostLeggings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = @"Set Bonus: Melee and ranged attacks cause frostburn +Provides heat and cold protection in Death Mode"; } } } @@ -2126,6 +2175,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; return "Obsidian"; if (head.type == ItemID.MoltenHelmet && body.type == ItemID.MoltenBreastplate && legs.type == ItemID.MoltenGreaves) return "Molten"; + if (head.type == (ItemID.EskimoHood | ItemID.PinkEskimoHood) && body.type == (ItemID.EskimoCoat | ItemID.PinkEskimoCoat) && legs.type == (ItemID.EskimoPants | ItemID.PinkEskimoPants)) + return "Eskimo"; return ""; } @@ -2178,13 +2229,18 @@ Grants immunity to fire blocks, and temporary immunity to lava"; "Rogue stealth builds while not attacking and not moving, up to a max of 80\n" + "Once you have built max stealth, you will be able to perform a Stealth Strike\n" + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + - "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed\n" + + "Provides heat protection in Death Mode"; } else if (set == "Molten") { player.fireWalk = true; player.lavaMax += 300; } + else if (set == "Eskimo" && CalamityWorld.death) + { + player.setBonus = "Provides cold immunity in Death Mode"; + } } #endregion