fixing my math for real (real). last time I swear
This commit is contained in:
1 parent
fbe8f96be4
commit
5f72d3ff4c
1 file changed
+3
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user