removed unnecessary if statement
This commit is contained in:
1 parent
2b51feb171
commit
eed8656dc2
1 file changed
+5
-8
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user