#W# Task: Every 30 mins 30% of the Citizens, Tradesman, and MeetingSpots will be deleted and refreshed. Citizens will slowly respawn.

This commit is contained in:
WarrentyExpired 2026-11-04 15:57:25 -05:00
parent 0d1620e0a0
commit c4c73b236a
2 changed files with 52 additions and 1 deletions

View file

@ -113,6 +113,12 @@ namespace Server.Items
}
}
public void RefreshNode()
{
ClearNode();
_nextRespawn = DateTime.UtcNow; // Ready to spawn fresh NPCs as soon as a player is nearby
}
private (Point3D loc, Direction dir) GetSingleWorkerSpot()
{
if (Utility.RandomBool())