fix: Fix spawners missing parameters/properties (#1155)
This commit is contained in:
parent
1e50ff9966
commit
c34bcbc515
2 changed files with 22 additions and 5 deletions
|
|
@ -8,11 +8,19 @@ namespace Server.Engines.Spawners
|
|||
{
|
||||
public SpawnerEntry() => Spawned = new List<ISpawnable>();
|
||||
|
||||
public SpawnerEntry(string name, int probability, int maxcount) : this()
|
||||
public SpawnerEntry(
|
||||
string name,
|
||||
int probability,
|
||||
int maxcount,
|
||||
string properties = null,
|
||||
string parameters = null
|
||||
) : this()
|
||||
{
|
||||
SpawnedName = name;
|
||||
SpawnedProbability = probability;
|
||||
SpawnedMaxCount = maxcount;
|
||||
Properties = properties;
|
||||
Parameters = parameters;
|
||||
}
|
||||
|
||||
public SpawnerEntry(BaseSpawner parent, IGenericReader reader)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue