From 43199c51e3ea12eef52e8ec193eb3c4ccddb0820 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 14 Dec 2019 08:27:51 -0500 Subject: [PATCH] fixed latcher mines doing flat dmg --- Projectiles/Rogue/LatcherMineProjectile.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Projectiles/Rogue/LatcherMineProjectile.cs b/Projectiles/Rogue/LatcherMineProjectile.cs index d344d02ecd..dc4930fa9e 100644 --- a/Projectiles/Rogue/LatcherMineProjectile.cs +++ b/Projectiles/Rogue/LatcherMineProjectile.cs @@ -205,6 +205,8 @@ namespace CalamityMod.Projectiles.Rogue projectile.width = projectile.height = (projectile.Calamity().stealthStrike ? 240 : 100); projectile.position.X = projectile.position.X - (float)(projectile.width / 2); projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; projectile.Damage(); for (int i = 0; i < 6; i++) { @@ -212,14 +214,14 @@ namespace CalamityMod.Projectiles.Rogue { Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(40f)); Projectile.NewProjectile(projectile.Top, shrapnelVelocity, - ModContent.ProjectileType(), LatcherMine.BaseDamage, 3f, projectile.owner); + ModContent.ProjectileType(), projectile.damage, 3f, projectile.owner); } else { Vector2 fireVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(40f)); int fireIndex = Projectile.NewProjectile(projectile.Top, fireVelocity, Main.rand.Next(ProjectileID.MolotovFire, ProjectileID.MolotovFire3 + 1), - LatcherMine.BaseDamage, 1f, projectile.owner); + projectile.damage, 1f, projectile.owner); Main.projectile[fireIndex].Calamity().forceRogue = true; Main.projectile[fireIndex].penetrate = -1; Main.projectile[fireIndex].usesLocalNPCImmunity = true;