From eed8656dc2aefd09da020d0fcf7d7b120e748c31 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 12 Dec 2020 02:08:31 -0500 Subject: [PATCH] removed unnecessary if statement --- CalPlayer/CalamityPlayer.cs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 981ddf22fd..36d3b81d46 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -9790,14 +9790,11 @@ namespace CalamityMod.CalPlayer playRogueStealthSound = true; // Calculate stealth generation and gain stealth accordingly - if (wearingRogueArmor) - { - // 1f is normal speed, anything higher is faster. Default stealth generation is 3 seconds while standing still. - float currentStealthGen = UpdateStealthGenStats(); - rogueStealth += rogueStealthMax * (currentStealthGen / 180f); // 180 frames = 3 seconds - if (rogueStealth > rogueStealthMax) - rogueStealth = rogueStealthMax; - } + // 1f is normal speed, anything higher is faster. Default stealth generation is 3 seconds while standing still. + float currentStealthGen = UpdateStealthGenStats(); + rogueStealth += rogueStealthMax * (currentStealthGen / 180f); // 180 frames = 3 seconds + if (rogueStealth > rogueStealthMax) + rogueStealth = rogueStealthMax; ProvideStealthStatBonuses();