This commit is contained in:
2026-03-25 13:23:38 +01:00
parent d39fa63746
commit dc217080d3

View File

@@ -15,14 +15,14 @@ namespace PeopleVille.WorldBuilder
public ICitizenBuilder CreateAdult(string name, int health) public ICitizenBuilder CreateAdult(string name, int health)
{ {
person = new AdultCitizen { Name = name, Health = health, Inventory = new List<Equipment.IEquipment>() }; person = new AdultCitizen { Name = name, Health = health, Inventory = new List<IEquipment>() };
Citizens.Add(person); Citizens.Add(person);
return this; return this;
} }
public ICitizenBuilder CreateChild(string name, int health) public ICitizenBuilder CreateChild(string name, int health)
{ {
person = new ChildCitizen { Name = name, Health = health, Inventory = new List<Equipment.IEquipment>() }; person = new ChildCitizen { Name = name, Health = health, Inventory = new List<IEquipment>() };
Citizens.Add(person); Citizens.Add(person);
return this; return this;
} }