From 5420bb465702c830a3e28f00eb2d1a6c9960ae89 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 7 Sep 2023 12:19:14 -0700 Subject: [PATCH 1/3] Phantasmal ruin random soul rotation --- Projectiles/Rogue/PhantasmalRuinProj.cs | 7 ++++--- Projectiles/Rogue/PhantasmalSoulBlue.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Projectiles/Rogue/PhantasmalRuinProj.cs b/Projectiles/Rogue/PhantasmalRuinProj.cs index 122477f243..b6d6c5e2d0 100644 --- a/Projectiles/Rogue/PhantasmalRuinProj.cs +++ b/Projectiles/Rogue/PhantasmalRuinProj.cs @@ -85,13 +85,14 @@ namespace CalamityMod.Projectiles.Rogue int projID = ModContent.ProjectileType(); int soulDamage = (int)(Projectile.damage * 0.2f); float soulKB = 0f; - float speed = 10f; + float speed = 4f; float startAngle = Main.rand.NextFloat(-0.07f, 0.07f) + MathHelper.PiOver4; Vector2 velocity = (Vector2.UnitX * speed).RotatedBy(startAngle); for (int i = 0; i < numSouls; i += 2) { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, projID, soulDamage, soulKB, Projectile.owner, 0f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, -velocity, projID, soulDamage, soulKB, Projectile.owner, 0f); + Vector2 velocityrandom = velocity.RotatedByRandom(1.5f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity + velocityrandom, projID, soulDamage, soulKB, Projectile.owner, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, -velocity - velocityrandom, projID, soulDamage, soulKB, Projectile.owner, 0f); // Rotate direction for the next pair of souls. velocity = velocity.RotatedBy(MathHelper.TwoPi / numSouls); } diff --git a/Projectiles/Rogue/PhantasmalSoulBlue.cs b/Projectiles/Rogue/PhantasmalSoulBlue.cs index 1b3e4815c1..9fa1490ff4 100644 --- a/Projectiles/Rogue/PhantasmalSoulBlue.cs +++ b/Projectiles/Rogue/PhantasmalSoulBlue.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Projectiles.Rogue { public class PhantasmalSoulBlue : ModProjectile, ILocalizedModType { - public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Item/PhantomSpirit") { Volume = 0.3f }; + public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Item/PhantomSpirit") { Volume = 0.2f }; public new string LocalizationCategory => "Projectiles.Rogue"; private const int Lifetime = 300; private const int NoHomingFrames = 45; From 694df184a76e6d7cb604e482deec1327bc5e677f Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 7 Sep 2023 18:36:55 -0600 Subject: [PATCH 2/3] 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) From 310040796e3a36199d90c4398bb73861ccf95246 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 7 Sep 2023 19:26:32 -0600 Subject: [PATCH 3/3] Nerfed Plasma Grenades; AGAIN --- Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs index f575b6ff3e..89fe934f19 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs @@ -26,12 +26,12 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.width = 22; Item.height = 28; - Item.damage = 1000; + Item.damage = 900; Item.noMelee = true; Item.noUseGraphic = true; Item.consumable = false; Item.useStyle = ItemUseStyleID.Swing; - Item.useAnimation = Item.useTime = 27; + Item.useAnimation = Item.useTime = 30; Item.knockBack = 3f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; @@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal modItem.ChargePerUse = 0.25f; } - public override float StealthDamageMultiplier => 1.2f; + public override float StealthDamageMultiplier => 0.9f; public override float StealthVelocityMultiplier => 1.2f; public override float StealthKnockbackMultiplier => 1.5f;