#W# Tradesman: Added citizens that stand round and 'work'
This commit is contained in:
parent
7de553e357
commit
740d06a524
27 changed files with 610 additions and 459 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue