From 151d4366867c19a44a657392e0ff35718ded29e9 Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Sun, 21 Nov 2021 19:30:12 -0600 Subject: [PATCH] 1 - Endurance Potion increases DR by 5% instead of 10% because it's a Potion and shouldn't be that strong. --- Buffs/CalamityGlobalBuff.cs | 10 +++++++++- Items/CalamityGlobalItemTooltip.cs | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs index 14a6ba60c0..e8f4eb2b9c 100644 --- a/Buffs/CalamityGlobalBuff.cs +++ b/Buffs/CalamityGlobalBuff.cs @@ -11,7 +11,11 @@ namespace CalamityMod.Buffs { public override void Update(int type, Player player, ref int buffIndex) { - if (type == BuffID.MagicPower) + if (type == BuffID.Endurance) + { + player.endurance -= 0.05f; + } + else if (type == BuffID.MagicPower) { player.magicDamage -= 0.1f; } @@ -92,6 +96,10 @@ namespace CalamityMod.Buffs // Vanilla buffs switch (type) { + case BuffID.Endurance: + tip = "5% reduced damage"; + break; + case BuffID.MagicPower: tip = "10% increased magic damage"; break; diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index bf48711159..e06edf6d88 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -328,6 +328,10 @@ namespace CalamityMod.Items if (item.type == ItemID.SwiftnessPotion) EditTooltipByNum(0, (line) => line.text = "15% increased movement speed"); + // Nerfed Endurance Potion tooltip + if (item.type == ItemID.EndurancePotion) + EditTooltipByNum(0, (line) => line.text = "Reduces damage taken by 5%"); + // Hand Warmer provides Death Mode cold protection and has a side bonus with Eskimo armor if (item.type == ItemID.HandWarmer) {