From 143973bbacab040362c5ebccbaae0d923986e6cd Mon Sep 17 00:00:00 2001 From: Dominic Date: Tue, 27 Jul 2021 16:31:02 -0500 Subject: [PATCH] Surge Driver damages/resists --- Items/Weapons/Ranged/SurgeDriver.cs | 2 +- NPCs/CalamityGlobalNPC.cs | 8 ++++++++ Projectiles/Ranged/PrismaticEnergyBlast.cs | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Ranged/SurgeDriver.cs b/Items/Weapons/Ranged/SurgeDriver.cs index f3e8ed0a68..94b23d9a56 100644 --- a/Items/Weapons/Ranged/SurgeDriver.cs +++ b/Items/Weapons/Ranged/SurgeDriver.cs @@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Vector2 newShootVelocity = shootVelocity * Main.rand.NextFloat(1f, 1.45f); newShootVelocity = newShootVelocity.RotatedByRandom(0.15f); - Projectile.NewProjectile(gunTip, newShootVelocity, item.shoot, damage, knockBack, player.whoAmI); + Projectile.NewProjectile(gunTip, newShootVelocity, item.shoot, (int)(damage * 1.08), knockBack, player.whoAmI); } } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index fe3ee4c34a..9f841afa66 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3791,6 +3791,10 @@ namespace CalamityMod.NPCs } else if (npc.type == NPCType()) { + // 30% resist to Surge Driver's alt click comets. + if (projectile.type == ProjectileType()) + damage = (int)(damage * 0.7); + // 20% resist to Executioner's Blade stealth strikes. if (projectile.type == ProjectileType()) damage = (int)(damage * 0.8); @@ -3891,6 +3895,10 @@ namespace CalamityMod.NPCs // 10% resist to Executioner's Blade stealth strikes. else if (projectile.type == ProjectileType()) damage = (int)(damage * 0.9); + + // 10% resist to Surge Driver's alt click comets. + if (projectile.type == ProjectileType()) + damage = (int)(damage * 0.9); } else if (npc.type == NPCID.CultistBoss) { diff --git a/Projectiles/Ranged/PrismaticEnergyBlast.cs b/Projectiles/Ranged/PrismaticEnergyBlast.cs index 073240ffd1..ee55885a43 100644 --- a/Projectiles/Ranged/PrismaticEnergyBlast.cs +++ b/Projectiles/Ranged/PrismaticEnergyBlast.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Ranged if (Main.myPlayer != projectile.owner || ExplodedYet || LaserLength <= 60f) return; - Projectile.NewProjectile(laserEnd, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, 0f, projectile.owner); + Projectile.NewProjectile(laserEnd, Vector2.Zero, ModContent.ProjectileType(), projectile.damage / 2, 0f, projectile.owner); if (!ExplodedYet) {