From 694df184a76e6d7cb604e482deec1327bc5e677f Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 7 Sep 2023 18:36:55 -0600 Subject: [PATCH] Fixed Rogue Stealth Damage prefixes reducing damage, nerfed UniversalStealthStrikeDamageFactor Others: Some minor tweaks to OD's rogue drops that are WIP --- Balancing/BalancingConstants.cs | 13 ++++++++++++- CalPlayer/CalamityPlayer.cs | 2 +- Items/Weapons/Rogue/TheOldReaper.cs | 4 ++-- Projectiles/Rogue/ReaperProjectile.cs | 10 +++++----- Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs | 6 +++--- 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/Balancing/BalancingConstants.cs b/Balancing/BalancingConstants.cs index b97bf0b3f2..292d411c7d 100644 --- a/Balancing/BalancingConstants.cs +++ b/Balancing/BalancingConstants.cs @@ -59,7 +59,18 @@ // Rogue stealth // 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; + public static double UniversalStealthStrikeDamageFactor = 0.41; + // Shade - 07/09/2023 + // Universal Stealth dmg factor was nerfed to 0.41 from 0.5 + // Stealth damage prefixes were bugged, causing that stealth strikes with the Mighty, Hefty and most importantly Flawless + // dealt less damage than intended; idk how long this thing has been for but looking at #bug-reports and #known-bugs its + // likely at least 7 months old, buried deep beneath a lot other bugs due to being in the port and forgotten about. + // Due to how impactful the fix was, the change had to happen and thus the nerf was made. + // + // This nerf should be reversed once the stealth -> focus rogue rework or rogue/stealth III or however you want to call it occurs, + // as of today summoner is the priority class now but once we're done with the Summoner minion culling and its Whip Hell we should + // probably start working on rogue afterwards. + internal static readonly float BaseStealthGenTime = 4f; // 4 seconds internal static readonly float MovingStealthGenRatio = 0.5f; diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 7cd1f883f1..b689d54f47 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3690,7 +3690,7 @@ namespace CalamityMod.CalPlayer { // Apply weapon modifier stealth strike damage bonus if (item.Calamity().StealthStrikePrefixBonus != 0f && StealthStrikeAvailable()) - damage += 1f - item.Calamity().StealthStrikePrefixBonus; + damage += 1f + item.Calamity().StealthStrikePrefixBonus; } } diff --git a/Items/Weapons/Rogue/TheOldReaper.cs b/Items/Weapons/Rogue/TheOldReaper.cs index 0b282e6527..40a02d8975 100644 --- a/Items/Weapons/Rogue/TheOldReaper.cs +++ b/Items/Weapons/Rogue/TheOldReaper.cs @@ -38,8 +38,8 @@ namespace CalamityMod.Items.Weapons.Rogue { if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike { - int spread = 10; - for (int i = 0; i < 4; i++) + int spread = 15; + for (int i = 0; i < 3; i++) { Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-3,4), velocity.Y + Main.rand.Next(-3,4)).RotatedBy(MathHelper.ToRadians(spread)); int proj = Projectile.NewProjectile(source, position, perturbedspeed, type, damage, knockback, player.whoAmI); diff --git a/Projectiles/Rogue/ReaperProjectile.cs b/Projectiles/Rogue/ReaperProjectile.cs index d5a5a1af30..c75a0d63ed 100644 --- a/Projectiles/Rogue/ReaperProjectile.cs +++ b/Projectiles/Rogue/ReaperProjectile.cs @@ -27,10 +27,10 @@ namespace CalamityMod.Projectiles.Rogue Projectile.tileCollide = false; Projectile.ignoreWater = true; Projectile.penetrate = -1; - Projectile.extraUpdates = 3; + Projectile.extraUpdates = 2; Projectile.timeLeft = Projectile.MaxUpdates * 90; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 26; // can't hit too fast, but can hit many many times + Projectile.localNPCHitCooldown = 18; // can't hit too fast, but can hit many many times Projectile.DamageType = RogueDamageClass.Instance; } @@ -142,7 +142,7 @@ namespace CalamityMod.Projectiles.Rogue } } } - Projectile.rotation += 0.07f; + Projectile.rotation += 0.3f; } public override bool PreDraw(ref Color lightColor) @@ -154,14 +154,14 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 180); - target.AddBuff(ModContent.BuffType(), 180); + //target.AddBuff(ModContent.BuffType(), 180); target.AddBuff(ModContent.BuffType(), 180); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { target.AddBuff(ModContent.BuffType(), 180); - target.AddBuff(ModContent.BuffType(), 180); + //target.AddBuff(ModContent.BuffType(), 180); target.AddBuff(ModContent.BuffType(), 180); } diff --git a/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs b/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs index 4c38ee01cf..120b5eedcc 100644 --- a/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs +++ b/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs @@ -41,9 +41,9 @@ namespace CalamityMod.Projectiles.Rogue } Projectile.rotation += 0.06f * (Projectile.velocity.X > 0).ToDirectionInt(); } - - // Boomerang rotation - Projectile.rotation += 0.4f * Projectile.direction; + else + // Boomerang rotation + Projectile.rotation += 0.4f * Projectile.direction; // Boomerang sound if (Projectile.soundDelay == 0)