From b6d60c2fd7e07582d44bc753f5dd8066c2cc3c04 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 4 Aug 2019 18:03:38 -0400 Subject: [PATCH] Fixed Slime God loot, for real --- NPCs/SlimeGod/SlimeGod.cs | 1 - NPCs/SlimeGod/SlimeGodCore.cs | 1 - NPCs/SlimeGod/SlimeGodRun.cs | 1 - NPCs/SlimeGod/SlimeGodRunSplit.cs | 2 +- NPCs/SlimeGod/SlimeGodSplit.cs | 2 +- 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/NPCs/SlimeGod/SlimeGod.cs b/NPCs/SlimeGod/SlimeGod.cs index d6a99cb996..c7e01aea1c 100644 --- a/NPCs/SlimeGod/SlimeGod.cs +++ b/NPCs/SlimeGod/SlimeGod.cs @@ -540,7 +540,6 @@ namespace CalamityMod.NPCs.SlimeGod { bool otherSlimeGodsAlive = NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) || - NPC.AnyNPCs(mod.NPCType("SlimeGod")) || NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) || NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) || NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")); diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 31fd5c512b..5f96a79964 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -321,7 +321,6 @@ namespace CalamityMod.NPCs.SlimeGod public override void NPCLoot() { bool otherSlimeGodsAlive = - NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) || NPC.AnyNPCs(mod.NPCType("SlimeGod")) || NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) || NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) || diff --git a/NPCs/SlimeGod/SlimeGodRun.cs b/NPCs/SlimeGod/SlimeGodRun.cs index 0414856c5a..35024b7e1a 100644 --- a/NPCs/SlimeGod/SlimeGodRun.cs +++ b/NPCs/SlimeGod/SlimeGodRun.cs @@ -568,7 +568,6 @@ namespace CalamityMod.NPCs.SlimeGod NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) || NPC.AnyNPCs(mod.NPCType("SlimeGod")) || NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) || NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")); if (!otherSlimeGodsAlive) SlimeGodCore.DropSlimeGodLoot(npc); diff --git a/NPCs/SlimeGod/SlimeGodRunSplit.cs b/NPCs/SlimeGod/SlimeGodRunSplit.cs index 771ff949f7..be878a1c91 100644 --- a/NPCs/SlimeGod/SlimeGodRunSplit.cs +++ b/NPCs/SlimeGod/SlimeGodRunSplit.cs @@ -538,7 +538,7 @@ namespace CalamityMod.NPCs.SlimeGod NPC.AnyNPCs(mod.NPCType("SlimeGod")) || NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) || NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")); + NPC.CountNPCS(mod.NPCType("SlimeGodRunSplit")) > 1; // the other crimulan split is alive if (!otherSlimeGodsAlive) SlimeGodCore.DropSlimeGodLoot(npc); } diff --git a/NPCs/SlimeGod/SlimeGodSplit.cs b/NPCs/SlimeGod/SlimeGodSplit.cs index 86fd4b9df4..3967ce8aca 100644 --- a/NPCs/SlimeGod/SlimeGodSplit.cs +++ b/NPCs/SlimeGod/SlimeGodSplit.cs @@ -521,7 +521,7 @@ namespace CalamityMod.NPCs.SlimeGod bool otherSlimeGodsAlive = NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) || NPC.AnyNPCs(mod.NPCType("SlimeGod")) || - NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) || + NPC.CountNPCS(mod.NPCType("SlimeGodSplit")) > 1 || // the other ebonian split is alive NPC.AnyNPCs(mod.NPCType("SlimeGodRun")) || NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")); if (!otherSlimeGodsAlive)