diff --git a/NPCs/Bumblebirb/Bumblefuck2.cs b/NPCs/Bumblebirb/Bumblefuck2.cs index 897a5f6d80..a4c18ae352 100644 --- a/NPCs/Bumblebirb/Bumblefuck2.cs +++ b/NPCs/Bumblebirb/Bumblefuck2.cs @@ -269,7 +269,7 @@ namespace CalamityMod.NPCs.Bumblebirb public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(4) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Crabulon/CrabShroom.cs b/NPCs/Crabulon/CrabShroom.cs index 9f35c6d1dc..5a8cc646e1 100644 --- a/NPCs/Crabulon/CrabShroom.cs +++ b/NPCs/Crabulon/CrabShroom.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -105,7 +106,7 @@ namespace CalamityMod.NPCs.Crabulon public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Cryogen/Cryocore.cs b/NPCs/Cryogen/Cryocore.cs index f0df464e92..74ebd5beba 100644 --- a/NPCs/Cryogen/Cryocore.cs +++ b/NPCs/Cryogen/Cryocore.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -95,7 +96,7 @@ namespace CalamityMod.NPCs.Cryogen public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Cryogen/Cryocore2.cs b/NPCs/Cryogen/Cryocore2.cs index ee4e55dca6..f347ebd9c0 100644 --- a/NPCs/Cryogen/Cryocore2.cs +++ b/NPCs/Cryogen/Cryocore2.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -95,7 +96,7 @@ namespace CalamityMod.NPCs.Cryogen public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Cryogen/IceMass.cs b/NPCs/Cryogen/IceMass.cs index 5b8c6a1cd6..2bb459c02f 100644 --- a/NPCs/Cryogen/IceMass.cs +++ b/NPCs/Cryogen/IceMass.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using System; @@ -64,7 +65,7 @@ namespace CalamityMod.NPCs.Cryogen public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/DesertScourge/DriedSeekerHead.cs b/NPCs/DesertScourge/DriedSeekerHead.cs index 66c1ea1027..7606de8750 100644 --- a/NPCs/DesertScourge/DriedSeekerHead.cs +++ b/NPCs/DesertScourge/DriedSeekerHead.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -376,7 +377,7 @@ namespace CalamityMod.NPCs.DesertScourge public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/HiveMind/DankCreeper.cs b/NPCs/HiveMind/DankCreeper.cs index bf174268b4..9482c7570d 100644 --- a/NPCs/HiveMind/DankCreeper.cs +++ b/NPCs/HiveMind/DankCreeper.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.Projectiles.Boss; using CalamityMod.World; @@ -108,7 +109,7 @@ namespace CalamityMod.NPCs.HiveMind public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(4) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Leviathan/AquaticAberration.cs b/NPCs/Leviathan/AquaticAberration.cs index 03bbd5f2b5..bcbbbd9684 100644 --- a/NPCs/Leviathan/AquaticAberration.cs +++ b/NPCs/Leviathan/AquaticAberration.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; @@ -7,6 +7,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.NPCs.Leviathan { public class AquaticAberration : ModNPC @@ -166,7 +167,7 @@ namespace CalamityMod.NPCs.Leviathan public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(4) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Leviathan/Parasea.cs b/NPCs/Leviathan/Parasea.cs index 85780e4ed5..09cb52d8cc 100644 --- a/NPCs/Leviathan/Parasea.cs +++ b/NPCs/Leviathan/Parasea.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; @@ -6,6 +7,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.NPCs.Leviathan { public class Parasea : ModNPC @@ -78,7 +80,7 @@ namespace CalamityMod.NPCs.Leviathan public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/OldDuke/OldDukeSharkron.cs b/NPCs/OldDuke/OldDukeSharkron.cs index 684f984df1..7edc52e773 100644 --- a/NPCs/OldDuke/OldDukeSharkron.cs +++ b/NPCs/OldDuke/OldDukeSharkron.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.CalPlayer; using System; using System.IO; using Microsoft.Xna.Framework; @@ -181,7 +182,7 @@ namespace CalamityMod.NPCs.OldDuke public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/OldDuke/OldDukeToothBall.cs b/NPCs/OldDuke/OldDukeToothBall.cs index ee416947f0..2dc38e1654 100644 --- a/NPCs/OldDuke/OldDukeToothBall.cs +++ b/NPCs/OldDuke/OldDukeToothBall.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Boss; using CalamityMod.World; using System; @@ -173,7 +174,7 @@ namespace CalamityMod.NPCs.OldDuke public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Perforator/PerforatorBodyMedium.cs b/NPCs/Perforator/PerforatorBodyMedium.cs index 09949b25fe..9943999506 100644 --- a/NPCs/Perforator/PerforatorBodyMedium.cs +++ b/NPCs/Perforator/PerforatorBodyMedium.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -191,7 +192,7 @@ namespace CalamityMod.NPCs.Perforator public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(4) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Perforator/PerforatorHeadMedium.cs b/NPCs/Perforator/PerforatorHeadMedium.cs index 21e2eacf38..1755f085c5 100644 --- a/NPCs/Perforator/PerforatorHeadMedium.cs +++ b/NPCs/Perforator/PerforatorHeadMedium.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.Items.Materials; using CalamityMod.World; @@ -423,7 +424,7 @@ namespace CalamityMod.NPCs.Perforator public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(4) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Perforator/PerforatorTailMedium.cs b/NPCs/Perforator/PerforatorTailMedium.cs index a2039a6598..ac5f1b0cb0 100644 --- a/NPCs/Perforator/PerforatorTailMedium.cs +++ b/NPCs/Perforator/PerforatorTailMedium.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -175,7 +176,7 @@ namespace CalamityMod.NPCs.Perforator public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(4) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/PlaguebringerGoliath/PlagueBeeG.cs b/NPCs/PlaguebringerGoliath/PlagueBeeG.cs index b7c55a1785..54c28915d5 100644 --- a/NPCs/PlaguebringerGoliath/PlagueBeeG.cs +++ b/NPCs/PlaguebringerGoliath/PlagueBeeG.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Dusts; using CalamityMod.Events; using CalamityMod.World; @@ -8,6 +9,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.NPCs.PlaguebringerGoliath { public class PlagueBeeG : ModNPC @@ -252,7 +254,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs b/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs index ed97950a96..2e5ae989b8 100644 --- a/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs +++ b/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Dusts; using CalamityMod.Events; using CalamityMod.World; @@ -8,6 +9,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.NPCs.PlaguebringerGoliath { public class PlagueBeeLargeG : ModNPC @@ -145,7 +147,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs b/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs index 3318a52d44..a1148abdd6 100644 --- a/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs +++ b/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Terraria; @@ -54,7 +55,7 @@ namespace CalamityMod.NPCs.SlimeGod public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/SlimeGod/SlimeSpawnCrimson.cs b/NPCs/SlimeGod/SlimeSpawnCrimson.cs index ba17507cc2..0517d788f2 100644 --- a/NPCs/SlimeGod/SlimeSpawnCrimson.cs +++ b/NPCs/SlimeGod/SlimeSpawnCrimson.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Terraria; @@ -54,7 +55,7 @@ namespace CalamityMod.NPCs.SlimeGod public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/SlimeGod/SlimeSpawnCrimson2.cs b/NPCs/SlimeGod/SlimeSpawnCrimson2.cs index d76fc3e619..cbcae78681 100644 --- a/NPCs/SlimeGod/SlimeSpawnCrimson2.cs +++ b/NPCs/SlimeGod/SlimeSpawnCrimson2.cs @@ -1,3 +1,4 @@ +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.Projectiles.Enemy; using CalamityMod.World; @@ -142,7 +143,7 @@ namespace CalamityMod.NPCs.SlimeGod public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Yharon/DetonatingFlare.cs b/NPCs/Yharon/DetonatingFlare.cs index ee5d1a3346..e8a5990dd9 100644 --- a/NPCs/Yharon/DetonatingFlare.cs +++ b/NPCs/Yharon/DetonatingFlare.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -238,7 +239,7 @@ namespace CalamityMod.NPCs.Yharon public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) diff --git a/NPCs/Yharon/DetonatingFlare2.cs b/NPCs/Yharon/DetonatingFlare2.cs index 1642d2290b..9ac4cea950 100644 --- a/NPCs/Yharon/DetonatingFlare2.cs +++ b/NPCs/Yharon/DetonatingFlare2.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -74,7 +75,7 @@ namespace CalamityMod.NPCs.Yharon public override bool PreNPCLoot() { - if (!CalamityWorld.malice && !CalamityWorld.revenge) + if ((!CalamityWorld.malice && !CalamityWorld.revenge) || !CalamityPlayer.areThereAnyDamnBosses) { int closestPlayer = Player.FindClosest(npc.Center, 1, 1); if (Main.rand.Next(8) == 0 && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2)