From 5f72d3ff4cc8fbab5e120d944ca197d2b6d98a16 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Wed, 8 Dec 2021 10:36:34 -0500 Subject: [PATCH] fixing my math for real (real). last time I swear --- CalPlayer/CalamityPlayer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index b949d47df6..038030c4c4 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -9513,10 +9513,10 @@ namespace CalamityMod.CalPlayer float lossReductionRatio = flatStealthLossReduction / (rogueStealthMax * 100f); float remainingStealth = rogueStealthMax * lossReductionRatio; - // You cannot lose less than one stealth point. - if (remainingStealth < 0.01f) - remainingStealth = 0.01f; float stealthToLose = rogueStealthMax - remainingStealth + // You cannot lose less than one stealth point. + if (stealthToLose < 0.01f) + stealthToLose = 0.01f; if (stealthStrikeHalfCost) { rogueStealth -= 0.5f * stealthToLose;