From cb8e26219fd869ea01fe9918d0cbcf25c30164b3 Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Sat, 2 Oct 2021 18:04:14 -0500 Subject: [PATCH] 1 - Removed several resistances that are likely no longer needed. --- NPCs/CalamityGlobalNPC.cs | 56 +++++++-------------------------------- 1 file changed, 10 insertions(+), 46 deletions(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 8ee5695278..cd1d5f37c0 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3478,15 +3478,15 @@ namespace CalamityMod.NPCs } else if (AstrumDeusIDs.Contains(npc.type)) { - // 75% resist to Stardust Dragon Staff and Plaguenades. - if (ProjectileID.Sets.StardustDragon[projectile.type] || projectile.type == ProjectileType() || projectile.type == ProjectileType()) + // 75% resist to Plaguenades. + if (projectile.type == ProjectileType() || projectile.type == ProjectileType()) damage = (int)(damage * 0.25); // 50% resist to true melee. else if (projectile.Calamity().trueMelee) damage = (int)(damage * 0.5); - // 25% resist to Lazhar, Inferno Fork, Cosmic Rainbow, Plague Staff, Resurrection Butterfly, Eidolon Staff and Charged Blaster Cannon. + // 25% resist to Resurrection Butterfly. else if (projectile.type == ProjectileType() || projectile.type == ProjectileType()) damage = (int)(damage * 0.75); } @@ -3497,7 +3497,7 @@ namespace CalamityMod.NPCs damage = (int)(damage * 0.7); // 20% resist to Executioner's Blade stealth strikes. - if (projectile.type == ProjectileType()) + else if (projectile.type == ProjectileType()) damage = (int)(damage * 0.8); } else if (DevourerOfGodsIDs.Contains(npc.type)) @@ -3517,30 +3517,18 @@ namespace CalamityMod.NPCs } else if (StormWeaverIDs.Contains(npc.type)) { - // 10% resist to Shattered Sun. - if (projectile.type == ProjectileType()) - damage = (int)(damage * 0.9); - // 25% resist to Molten Amputator blobs. - else if (projectile.type == ProjectileType()) + if (projectile.type == ProjectileType()) damage = (int)(damage * 0.75); // 50% resist to true melee, Elemental Axe, Dazzling Stabber Staff and Pristine Fury. else if (projectile.Calamity().trueMelee || projectile.type == ProjectileType() || projectile.type == ProjectileType() || projectile.type == ProjectileType()) damage = (int)(damage * 0.5); - - // 90% resist to Stardust Dragon Staff. - else if (ProjectileID.Sets.StardustDragon[projectile.type]) - damage = (int)(damage * 0.1); } else if (DestroyerIDs.Contains(npc.type)) { - // 25% resist to Spear of Paleolith, Desecrated Water, Kelvin Catalyst and Pearlwood Bow. - if (projectile.type == ProjectileType() || projectile.type == ProjectileType() || projectile.type == ProjectileType()) - damage = (int)(damage * 0.75); - // 50% resist to true melee and Dormant Brimseekers. - else if (projectile.Calamity().trueMelee || projectile.type == ProjectileType()) + if (projectile.Calamity().trueMelee || projectile.type == ProjectileType()) damage = (int)(damage * 0.5); } else if (AquaticScourgeIDs.Contains(npc.type)) @@ -3575,37 +3563,13 @@ namespace CalamityMod.NPCs } else if (npc.type == NPCType()) { - // 20.5% resist to Time Bolt. + // 20% resist to Time Bolt. if (projectile.type == ProjectileType()) - damage = (int)(damage * 0.795); + damage = (int)(damage * 0.8); - // 61% resist to Last Mourning. + // 60% resist to Last Mourning. else if (projectile.type == ProjectileType() || projectile.type == ProjectileID.FlamingJack) - damage = (int)(damage * 0.39); - } - else if (npc.type == NPCType()) - { - // 5% resist to Celestial Reaper. - if (projectile.type == ProjectileType() || projectile.type == ProjectileType()) - damage = (int)(damage * 0.95); - } - else if (npc.type == NPCType()) - { - // 5% resist to Celestial Reaper. - if (projectile.type == ProjectileType() || projectile.type == ProjectileType()) - damage = (int)(damage * 0.95); - } - else if (npc.type == NPCType()) - { - // 10% resist to Onyxia. - if (projectile.type == ProjectileID.BlackBolt) - damage = (int)(damage * 0.9); - } - else if (npc.type == NPCType() || npc.type == NPCType()) - { - // 10% resist to Phoenix Flame Barrage. - if (projectile.type == ProjectileType()) - damage = (int)(damage * 0.9); + damage = (int)(damage * 0.4); } else if (npc.type == NPCType()) {