From f96da8cf3f2a540b41ab6d42f4df55a60acf387d Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Mon, 16 May 2022 12:07:50 -0500 Subject: [PATCH] 1 - Archery Potion arrow damage bonus is nerfed directly in UpdateBuffs instead of ModifyWeaponDamage. --- Buffs/CalamityGlobalBuff.cs | 10 ++++++---- Items/CalamityGlobalItem.cs | 4 ---- Items/CalamityGlobalItemTooltip.cs | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs index c8d0d0e5e8..112e608de7 100644 --- a/Buffs/CalamityGlobalBuff.cs +++ b/Buffs/CalamityGlobalBuff.cs @@ -10,7 +10,11 @@ namespace CalamityMod.Buffs { public override void Update(int type, Player player, ref int buffIndex) { - if (type == BuffID.Endurance) + if (type == BuffID.Archery) + { + player.arrowDamage *= 0.875f; + } + else if (type == BuffID.Endurance) { player.endurance -= 0.05f; } @@ -94,8 +98,6 @@ namespace CalamityMod.Buffs public override void ModifyBuffTip(int type, ref string tip, ref int rare) { - Player player = Main.player[Main.myPlayer]; - // Vanilla buffs switch (type) { @@ -108,7 +110,7 @@ namespace CalamityMod.Buffs break; case BuffID.Archery: - tip = "20% increased arrow speed and 1.05x arrow damage"; + tip = "20% increased arrow speed and 5% increased arrow damage"; break; case BuffID.Swiftness: diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 217633ac6d..901cde3a65 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -886,10 +886,6 @@ namespace CalamityMod.Items if (player.yoyoGlove && ItemID.Sets.Yoyo[item.type]) damage *= 0.66f; - // Nerf archery potion damage buff from 1.2x to 1.05x. - if (item.useAmmo == AmmoID.Arrow && player.archery) - damage *= 0.875f; - if (item.type < ItemID.Count) return; diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index d1ec96745e..f8eef32599 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -291,7 +291,7 @@ namespace CalamityMod.Items // Nerfed Archery Potion tooltip if (item.type == ItemID.ArcheryPotion) - EditTooltipByNum(0, (line) => line.Text = "20% increased arrow speed and 1.05x arrow damage"); + EditTooltipByNum(0, (line) => line.Text = "20% increased arrow speed and 5% increased arrow damage"); // Nerfed Swiftness Potion tooltip if (item.type == ItemID.SwiftnessPotion)