FUCK YOU, OLD MAN
This commit is contained in:
1 parent
7fa42a1b65
commit
84bc57d7de
1 file changed
+24
@@ -68,7 +68,9 @@ namespace CalamityMod.Systems
|
||||
|
||||
// Handle Acid Rain update logic.
|
||||
if (AcidRainEvent.AcidRainEventIsOngoing)
|
||||
{
|
||||
AcidRainEvent.Update();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (AcidRainEvent.TimeSinceEventStarted != 0)
|
||||
@@ -113,6 +115,9 @@ namespace CalamityMod.Systems
|
||||
CalamityGlobalNPC.AttemptToSpawnLavaNPCs(p);
|
||||
}
|
||||
|
||||
// Spawn the Old Man if Skeletron hasn't been defeated and there is no Old Man, it takes too fucking long otherwise.
|
||||
TrySpawnOldMan();
|
||||
|
||||
// Make the cultist countdown happen much more quickly.
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
@@ -567,6 +572,25 @@ namespace CalamityMod.Systems
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Handle Old Man Spawn
|
||||
public static void TrySpawnOldMan()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient || NPC.downedBoss3 || Main.dayTime)
|
||||
return;
|
||||
|
||||
if (NPC.AnyNPCs(NPCID.OldMan))
|
||||
return;
|
||||
|
||||
if (NPC.AnyNPCs(NPCID.SkeletronHead))
|
||||
return;
|
||||
|
||||
int oldMan = NPC.NewNPC(NPC.GetSource_TownSpawn(), Main.dungeonX * 16 + 8, Main.dungeonY * 16, 37);
|
||||
Main.npc[oldMan].homeless = false;
|
||||
Main.npc[oldMan].homeTileX = Main.dungeonX;
|
||||
Main.npc[oldMan].homeTileY = Main.dungeonY;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Handle Dungeon Guardian Spawns
|
||||
public static void TrySpawnDungeonGuardian(Player player)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user