From 48a5cebe0148ef666f6fe31747dd2c3562021d06 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Mon, 2 Feb 2026 19:23:35 -0600 Subject: [PATCH] vega balance adjustment Vega now allows stealth strikes for 10 seconds with 100 max stealth upon using its starburst attack --- CalPlayer/CalamityPlayer.cs | 15 ++++++++++++--- Items/Weapons/Rogue/Vega.cs | 9 ++++++--- .../Mods.CalamityMod.Items.Weapons.Rogue.hjson | 1 + 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 5b536b51ca..96dbae02f9 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -496,9 +496,16 @@ namespace CalamityMod.CalPlayer public float rogueStealthMax = 0f; /// /// Temporarily provides stealth even without Rogue armor. - /// Max stealth is set to 10 if it's 0. + /// Max stealth is set to temporaryStealthMax if it's 0. /// public int temporaryStealthTimer = 0; + /// + /// Amount of temporary max stealth provided by gear + /// 1f = 100 max steatlh + /// Duration is temporaryStealthTimer + /// Resets to 0.1f whenever timer ends + /// + public float temporaryStealthMax = 0.1f; /// A multiplier to the player's stealth generation when standing still. public float stealthGenStandstill = 1f; /// A multiplier to the player's stealth generation when moving. @@ -5848,14 +5855,16 @@ namespace CalamityMod.CalPlayer if (temporaryStealthTimer > 0) temporaryStealthTimer--; + else + temporaryStealthMax = 0.1f; } public void UpdateRogueStealth() { if (temporaryStealthTimer > 0) { - if (rogueStealthMax < 0.1f) - rogueStealthMax = 0.1f; + if (rogueStealthMax < temporaryStealthMax) + rogueStealthMax = temporaryStealthMax; wearingRogueArmor = true; } diff --git a/Items/Weapons/Rogue/Vega.cs b/Items/Weapons/Rogue/Vega.cs index 3adbc2e852..d44040ddb9 100644 --- a/Items/Weapons/Rogue/Vega.cs +++ b/Items/Weapons/Rogue/Vega.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Materials; +using System; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; @@ -55,8 +56,10 @@ namespace CalamityMod.Items.Weapons.Rogue { if (player.altFunctionUse == 2) { - - player.Calamity().rogueStealth = player.Calamity().rogueStealthMax; + //Vega temporarily allows stealth strikes regardless of armor for 10 seconds on Starburst usage + player.Calamity().temporaryStealthTimer = 600; + player.Calamity().temporaryStealthMax = 1; //Bloodflare is 1.2f + player.Calamity().rogueStealth = Math.Max(player.Calamity().rogueStealthMax, player.Calamity().temporaryStealthMax); player.Calamity().StratusStarburst -= StarburstCost; int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI,0,1); if (p.WithinBounds(Main.maxProjectiles)) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 9b4fab9942..ce942f5f03 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -1333,6 +1333,7 @@ Vega: { Stealth strikes conjure an image of Lyra to deal immense damage in an area to consume 20 Starbursts and immediately perform a stealth strike, regardless of your current Stealth This strike calls all star fragments to attack the damaged foe and inflicts [cbuff:CalamityMod/Voidfrost] + Consuming Starbursts with Vega allows using stealth for 10 seconds, even without rogue armor 'The final song of a misunderstood genius... or just a madman' ''' }