fixing my math for real (real). last time I swear

This commit is contained in:
ben-tk authored and Cameron Ewell committed 2021-12-12 01:17:06 -05:00
1 parent fbe8f96be4
commit 5f72d3ff4c
1 file changed
+3 -3
+3 -3
View File
@@ -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;