Slightly more lenient dungeon guardian spawns for Drunk World

This commit is contained in:
ben-tk committed 2022-09-09 11:43:01 -04:00
1 parent 9f2d177834
commit 77c0cd5c2d
1 file changed
+5 -1
+5 -1
View File
@@ -405,7 +405,11 @@ namespace CalamityMod.Systems
#region Handle Dungeon Guardian Spawns
public static void TrySpawnDungeonGuardian(Player player)
{
if (Main.netMode == NetmodeID.MultiplayerClient || !player.ZoneDungeon || NPC.downedBoss3 || player.dead)
bool dontSpawn = NPC.downedBoss3;
if (!Main.drunkWorld || player.position.Y / 16f >= (float)(Main.dungeonY + 40))
dontSpawn = false;
if (Main.netMode == NetmodeID.MultiplayerClient || !player.ZoneDungeon || dontSpawn || player.dead)
return;
if (!NPC.AnyNPCs(NPCID.DungeonGuardian))