#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:
parent
0d1620e0a0
commit
c4c73b236a
2 changed files with 52 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue