From 159fdb9c550ae4dfae537de75883f9c2d4e96728 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 10 Aug 2021 14:54:02 -0400 Subject: [PATCH] Eradicator 410 -> 685, stealth nerfed to hell --- Items/Weapons/Rogue/Eradicator.cs | 4 ++-- Projectiles/Rogue/EradicatorProjectile.cs | 13 ++++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Items/Weapons/Rogue/Eradicator.cs b/Items/Weapons/Rogue/Eradicator.cs index 5ea623f27b..b38ffc38fe 100644 --- a/Items/Weapons/Rogue/Eradicator.cs +++ b/Items/Weapons/Rogue/Eradicator.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SafeSetDefaults() { item.width = 38; - item.damage = 410; + item.damage = 685; item.noMelee = true; item.noUseGraphic = true; item.autoReuse = true; @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { if (player.Calamity().StealthStrikeAvailable()) - damage = (int)(damage * 0.66D); + damage = (int)(damage * 0.25f); int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI); if (player.Calamity().StealthStrikeAvailable() && proj.WithinBounds(Main.maxProjectiles)) diff --git a/Projectiles/Rogue/EradicatorProjectile.cs b/Projectiles/Rogue/EradicatorProjectile.cs index 2d61ad64a7..f3c7d50061 100644 --- a/Projectiles/Rogue/EradicatorProjectile.cs +++ b/Projectiles/Rogue/EradicatorProjectile.cs @@ -107,13 +107,16 @@ namespace CalamityMod.Projectiles.Rogue float spin = projectile.direction <= 0 ? -1f : 1f; projectile.rotation += spin * RotationIncrement; - // If not currently glued to a target with sticky AI, fire lasers at up to 2 nearby targets for 75% damage. + // If attached to something (this only occurs for stealth strikes), do the buzzsaw grind and spam lasers everywhere. if (projectile.ai[0] == 1f) StealthStrikeGrind(spin); else { + // Fire lasers at up to 2 nearby targets every 8 frames for 40% damage. + // Stealth strike lasers have an intentionally lower ratio of 12%. + double laserDamageRatio = projectile.Calamity().stealthStrike ? 0.12D : 0.4D; float laserFrames = projectile.MaxUpdates * 8f; - CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 6f, laserFrames, 2, ModContent.ProjectileType(), 0.4D, true); + CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 6f, laserFrames, 2, ModContent.ProjectileType(), laserDamageRatio, true); } } @@ -122,14 +125,14 @@ namespace CalamityMod.Projectiles.Rogue // Spin extra fast to visually shred the enemy. projectile.rotation += spinDir * RotationIncrement * 0.8f; - // Randomly fire lasers while grinding. + // Randomly fire lasers while grinding. Each laser only does 12% damage. randomLaserCharge += Main.rand.NextFloat(0.09f, 0.14f); if (randomLaserCharge >= 1f) { randomLaserCharge -= 1f; Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f); - int laserDamage = (int)(projectile.damage * 0.15D); + int laserDamage = (int)(projectile.damage * 0.12D); Projectile laser = Projectile.NewProjectileDirect(projectile.Center, velocity, ModContent.ProjectileType(), laserDamage, 0f, projectile.owner); if (laser.whoAmI.WithinBounds(Main.maxProjectiles)) { @@ -139,7 +142,7 @@ namespace CalamityMod.Projectiles.Rogue laser.usesLocalNPCImmunity = true; // This projectile has a hefty amount of extra updates, which will influence the hit cooldown. - laser.localNPCHitCooldown = 70; + laser.localNPCHitCooldown = 120; } }