From 670fa950da23e4f32383424b68794aa7fd06e2c7 Mon Sep 17 00:00:00 2001 From: Raesh Date: Sun, 7 Sep 2025 18:19:05 -0400 Subject: [PATCH] Coin of Deceit Stealth Nerf Nerfs the consumption of Coin of Deceit to 90% from 85%. NOTE: This Overrides/reverts the previous bug fix to make coin of deceit actually consume the amount it says --- CalPlayer/CalamityPlayer.cs | 14 +++++++------- Items/Accessories/CoinofDeceit.cs | 2 +- .../en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 00c55598bc..58e670c9f9 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -463,10 +463,10 @@ namespace CalamityMod.CalPlayer /// public bool stealthStrike75Cost = false; /// - /// If true, stealth strikes only require 85% of the player's max stealth to perform.
+ /// If true, stealth strikes only require 90% of the player's max stealth to perform.
/// Used by Coin of Deceit. ///
- public bool stealthStrike85Cost = false; + public bool stealthStrike90Cost = false; /// If true, this player is wearing a rogue or all-class armor set. This bool is required in order to use rogue stealth. public bool wearingRogueArmor = false; /// The sum of the player's stealth generation boosts from accessory modifiers. @@ -5308,7 +5308,7 @@ namespace CalamityMod.CalPlayer stealthStrikeThisFrame = false; stealthStrikeHalfCost = false; stealthStrike75Cost = false; - stealthStrike85Cost = false; + stealthStrike90Cost = false; // stealthAcceleration only resets if you don't have either of the accelerator accessories equipped if (!darkGodSheath && !eclipseMirror) @@ -5503,8 +5503,8 @@ namespace CalamityMod.CalPlayer consumptionMult = 0.5f; else if (stealthStrike75Cost) consumptionMult = 0.75f; - else if (stealthStrike85Cost) - consumptionMult = 0.85f; + else if (stealthStrike90Cost) + consumptionMult = 0.9f; return rogueStealth >= rogueStealthMax * consumptionMult; } @@ -5531,9 +5531,9 @@ namespace CalamityMod.CalPlayer if (rogueStealth <= 0f) rogueStealth = 0f; } - else if (stealthStrike85Cost) + else if (stealthStrike90Cost) { - rogueStealth -= 0.85f * stealthToLose; + rogueStealth -= 0.9f * stealthToLose; if (rogueStealth <= 0f) rogueStealth = 0f; } diff --git a/Items/Accessories/CoinofDeceit.cs b/Items/Accessories/CoinofDeceit.cs index 694429bc96..1b9ac86cd6 100644 --- a/Items/Accessories/CoinofDeceit.cs +++ b/Items/Accessories/CoinofDeceit.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { - player.Calamity().stealthStrike85Cost = true; + player.Calamity().stealthStrike90Cost = true; player.GetCritChance() += 6; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index c8885e38e9..ca9417e492 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -424,7 +424,7 @@ CoinofDeceit: { DisplayName: Coin of Deceit Tooltip: ''' - Stealth strikes only expend 85% of your max stealth + Stealth strikes only expend 90% of your max stealth 6% increased rogue crit chance ''' }