From c6a6a10402000ca4777f2cf8a4f1cbca2597be9e Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 6 Dec 2023 14:19:11 -0500 Subject: [PATCH] Valediction stealth was doing 120k DPS :skull: --- Balancing/BalancingChangesManager.cs | 3 +++ Items/Weapons/Rogue/Valediction.cs | 2 ++ Projectiles/Magic/NuclearFuryProjectile.cs | 2 +- Projectiles/Rogue/ValedictionBoomerang.cs | 4 ---- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 6474f0e39a..b675be3253 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -261,6 +261,9 @@ namespace CalamityMod.Balancing // 35% resist to Venusian Trident's explosions. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType(), ProjectileType())))); + // 20% resist to Valediction's typhoons; will catch Nuclear Fury as well but that doesn't matter. + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType())))); + // 15% vulnerability to Time Bolt stealth strikes. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new StealthStrikeBalancingRule(1.15f, ProjectileType())))); #endregion The Devourer of Gods diff --git a/Items/Weapons/Rogue/Valediction.cs b/Items/Weapons/Rogue/Valediction.cs index 86d6dea004..3cd01e2616 100644 --- a/Items/Weapons/Rogue/Valediction.cs +++ b/Items/Weapons/Rogue/Valediction.cs @@ -31,6 +31,8 @@ namespace CalamityMod.Items.Weapons.Rogue Item.rare = ModContent.RarityType(); } + public override float StealthDamageMultiplier => 0.8f; + public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike diff --git a/Projectiles/Magic/NuclearFuryProjectile.cs b/Projectiles/Magic/NuclearFuryProjectile.cs index 7a6ffdc539..8a500ae385 100644 --- a/Projectiles/Magic/NuclearFuryProjectile.cs +++ b/Projectiles/Magic/NuclearFuryProjectile.cs @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Magic if (Projectile.ai[0] != 0f) { int index = (int)(Projectile.ai[0] - 1); - if (Main.npc[index].active && !Main.npc[index].dontTakeDamage && Main.npc[index].immune[Projectile.owner] == 0) + if (Main.npc[index].active && !Main.npc[index].dontTakeDamage) { if ((Math.Abs(Projectile.Center.X - Main.npc[index].Center.X) + Math.Abs(Projectile.Center.Y - Main.npc[index].Center.Y)) < 1000f) { diff --git a/Projectiles/Rogue/ValedictionBoomerang.cs b/Projectiles/Rogue/ValedictionBoomerang.cs index 85aa061e64..aec879eda4 100644 --- a/Projectiles/Rogue/ValedictionBoomerang.cs +++ b/Projectiles/Rogue/ValedictionBoomerang.cs @@ -148,11 +148,7 @@ namespace CalamityMod.Projectiles.Rogue velocity *= (float)Main.rand.Next(70, 101) * 0.1f; Projectile typhoon = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), typhoonDamage, 0f, Projectile.owner, 0f, 1f); if (typhoon.whoAmI.WithinBounds(Main.maxProjectiles)) - { typhoon.DamageType = RogueDamageClass.Instance; - typhoon.usesLocalNPCImmunity = true; - typhoon.localNPCHitCooldown = 10; - } } } }