#W# Tradesman: Added citizens that stand round and 'work'

This commit is contained in:
WarrentyExpired 2026-11-04 10:08:06 -05:00
parent 7de553e357
commit 740d06a524
27 changed files with 610 additions and 459 deletions

View file

@ -512,6 +512,25 @@ namespace Server.Commands
light.ItemID = m_ItemID;
}
}
else if (item is TradesmanNode node)
{
for (var i = 0; i < m_Params.Length; ++i)
{
if (m_Params[i].StartsWithOrdinal("NodeType"))
{
var indexOf = m_Params[i].IndexOfOrdinal('=');
if (indexOf >= 0)
{
node.NodeType = (TradesmanNodeType)Enum.Parse(
typeof(TradesmanNodeType),
m_Params[i][++indexOf..],
true
);
}
}
}
}
else if (item is BaseSpawner sp)
{
sp.NextSpawn = TimeSpan.Zero;