From bdbf0d152fdfdb3a68dfe5c3c03de4547105a7ca Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sun, 9 Jun 2024 15:43:19 -0500 Subject: [PATCH] Wizard is also important enough to warrant this. --- NPCs/CalamityGlobalNPC.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index ee0d7b406c..8cdef5ea47 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -6236,11 +6236,20 @@ namespace CalamityMod.NPCs spawnInfo.Player.Calamity().ZoneSunkenSea || (spawnInfo.Player.Calamity().ZoneAstral && !spawnInfo.Player.PillarZone()); - // Fuck the Goblin - if (NPC.downedGoblins && !spawnInfo.Water && spawnInfo.Player.ZoneRockLayerHeight && !NPC.savedGoblin) + // Fuck the Goblin and the Wizard + if (!spawnInfo.Water && spawnInfo.Player.ZoneRockLayerHeight) { - if (!NPC.AnyNPCs(NPCID.BoundGoblin)) - pool[NPCID.BoundGoblin] = SpawnCondition.BoundCaveNPC.Chance * 5f; + if (NPC.downedGoblins && !NPC.savedGoblin) + { + if (!NPC.AnyNPCs(NPCID.BoundGoblin)) + pool[NPCID.BoundGoblin] = SpawnCondition.BoundCaveNPC.Chance * 5f; + } + + if (Main.hardMode && !NPC.savedWizard) + { + if (!NPC.AnyNPCs(NPCID.BoundWizard)) + pool[NPCID.BoundWizard] = SpawnCondition.BoundCaveNPC.Chance * 5f; + } } // Replace vanilla Lava Slimes with Calamity Lava Slimes to avoid annoying lava drops