From e24c1d38e2af0abd4eaa6f7ef0cb2801ea799d86 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Tue, 15 Jul 2025 15:25:57 -0400 Subject: [PATCH] Graveyard spawn rate tweaks --- NPCs/CalamityGlobalNPC.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 736a84b6e3..b2f532d728 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -6313,6 +6313,12 @@ namespace CalamityMod.NPCs maxSpawns = (int)(maxSpawns * 10f); } + if (CalamityWorld.death && player.ZoneGraveyard) + { + spawnRate = (int)(spawnRate * 0.6); + maxSpawns = (int)(maxSpawns * 1.5f); + } + if (NPC.LunarApocalypseIsUp) { if ((player.ZoneTowerNebula && NPC.ShieldStrengthTowerNebula == 0) || (player.ZoneTowerStardust && NPC.ShieldStrengthTowerStardust == 0) || @@ -6583,6 +6589,15 @@ namespace CalamityMod.NPCs } } + // Increased Maggot Zombie,the Groom, and the Bride spawn rates in a Graveyard + if (spawnInfo.Player.ZoneGraveyard) + { + pool[NPCID.MaggotZombie] = SpawnCondition.OverworldNightMonster.Chance * 0.2f; + pool[NPCID.TheGroom] = SpawnCondition.OverworldNightMonster.Chance * 0.035f; + pool[NPCID.TheBride] = SpawnCondition.OverworldNightMonster.Chance * 0.035f; + + } + // Disable vanilla spawns while in the Brimstone Crag if (calamityBiomeZone) {