From 4cd06001c51a50112e70c3cd08ddefb3050e5dab Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Wed, 21 Sep 2022 09:12:13 -0400 Subject: [PATCH] Buffed stealth regen from 3-9 seconds to 2-4 seconds still-moving ratio --- Balancing/BalancingConstants.cs | 4 ++-- CalPlayer/CalamityPlayer.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Balancing/BalancingConstants.cs b/Balancing/BalancingConstants.cs index 66c09874c7..9d423548e8 100644 --- a/Balancing/BalancingConstants.cs +++ b/Balancing/BalancingConstants.cs @@ -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. diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index f93f834604..45bd2b5fdd 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -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;