Buffed stealth regen from 3-9 seconds to 2-4 seconds still-moving ratio
This commit is contained in:
1 parent
54969af33b
commit
4cd06001c5
2 files changed
+4
-4
No files matched your search
@@ -52,8 +52,8 @@
|
||||
// If stealth is too weak, increase this number. If stealth is too strong, decrease this number.
|
||||
// This value is intentionally not readonly.
|
||||
public static double UniversalStealthStrikeDamageFactor = 0.5;
|
||||
internal static readonly float BaseStealthGenTime = 9f; // 9 seconds
|
||||
internal static readonly float MovingStealthGenRatio = 0.333333f;
|
||||
internal static readonly float BaseStealthGenTime = 4f; // 4 seconds
|
||||
internal static readonly float MovingStealthGenRatio = 0.5f;
|
||||
|
||||
// Rage
|
||||
internal static readonly int DefaultRageDuration = CalamityUtils.SecondsToFrames(9); // Rage lasts 9 seconds by default.
|
||||
|
||||
@@ -6512,9 +6512,9 @@ namespace CalamityMod.CalPlayer
|
||||
playRogueStealthSound = true;
|
||||
|
||||
// Calculate stealth generation and gain stealth accordingly
|
||||
// 1f is normal speed, anything higher is faster. Default stealth generation is 3 seconds while standing still.
|
||||
// 1f is normal speed, anything higher is faster. Default stealth generation is 2 seconds while standing still.
|
||||
float currentStealthGen = UpdateStealthGenStats();
|
||||
rogueStealth += rogueStealthMax * (currentStealthGen / 180f); // 180 frames = 3 seconds
|
||||
rogueStealth += rogueStealthMax * (currentStealthGen / 120f); // 120 frames = 2 seconds
|
||||
if (rogueStealth > rogueStealthMax)
|
||||
rogueStealth = rogueStealthMax;
|
||||
|
||||
|
||||
Reference in new issue
Block a user