fix: Fix spawners missing parameters/properties (#1155)

This commit is contained in:
Mink80 2022-09-01 21:55:23 +02:00 • committed by GitHub
parent 1e50ff9966
commit c34bcbc515
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 5 deletions

View file

@ -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)