From bec664903081692d7692e9b152ebd025a6bc2e77 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 29 Mar 2020 22:04:25 -0400 Subject: [PATCH] moved miniboss thingy to ShouldAffectNPC --- NPCs/CalamityGlobalNPC.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index f5d61c6009..ab02cf30e0 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3442,7 +3442,7 @@ namespace CalamityMod.NPCs { if (projectile.melee && ShouldAffectNPC(npc) && Main.rand.NextBool(15)) { - if (!CalamityPlayer.areThereAnyDamnBosses && !AcidRainEvent.AllMinibosses.Contains(npc.type)) + if (!CalamityPlayer.areThereAnyDamnBosses) { damage = npc.lifeMax * 3; } @@ -3453,7 +3453,7 @@ namespace CalamityMod.NPCs { if (projectile.magic && ShouldAffectNPC(npc) && Main.rand.NextBool(15)) { - if (!CalamityPlayer.areThereAnyDamnBosses && !AcidRainEvent.AllMinibosses.Contains(npc.type)) + if (!CalamityPlayer.areThereAnyDamnBosses) { damage = npc.lifeMax * 3; } @@ -3464,7 +3464,7 @@ namespace CalamityMod.NPCs { if (projectile.Calamity().rogue && ShouldAffectNPC(npc) && Main.rand.NextBool(15)) { - if (!CalamityPlayer.areThereAnyDamnBosses && !AcidRainEvent.AllMinibosses.Contains(npc.type)) + if (!CalamityPlayer.areThereAnyDamnBosses) { damage = npc.lifeMax * 3; } @@ -3475,7 +3475,7 @@ namespace CalamityMod.NPCs { if (projectile.ranged && ShouldAffectNPC(npc) && Main.rand.NextBool(15)) { - if (!CalamityPlayer.areThereAnyDamnBosses && !AcidRainEvent.AllMinibosses.Contains(npc.type)) + if (!CalamityPlayer.areThereAnyDamnBosses) { damage = npc.lifeMax * 3; } @@ -3486,7 +3486,7 @@ namespace CalamityMod.NPCs { if ((projectile.minion || projectile.sentry || ProjectileID.Sets.MinionShot[projectile.type] || ProjectileID.Sets.SentryShot[projectile.type] || CalamityMod.projectileMinionList.Contains(projectile.type)) && ShouldAffectNPC(npc) && Main.rand.NextBool(15)) { - if (!CalamityPlayer.areThereAnyDamnBosses && !AcidRainEvent.AllMinibosses.Contains(npc.type)) + if (!CalamityPlayer.areThereAnyDamnBosses) { damage = npc.lifeMax * 3; } @@ -5172,7 +5172,7 @@ namespace CalamityMod.NPCs target.type != NPCID.TheDestroyerBody && target.type != NPCID.TheDestroyerTail && target.type != NPCID.MourningWood && target.type != NPCID.Everscream && target.type != NPCID.SantaNK1 && target.type != ModContent.NPCType() && target.type != ModContent.NPCType() && target.type != ModContent.NPCType() && - target.type != ModContent.NPCType() && target.type != ModContent.NPCType() && target.type != NPCID.DD2Betsy && !CalamityMod.enemyImmunityList.Contains(target.type)) + target.type != ModContent.NPCType() && target.type != ModContent.NPCType() && target.type != NPCID.DD2Betsy && !CalamityMod.enemyImmunityList.Contains(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type)) { return true; }