City specialists now stay through game restarts

This commit is contained in:
Yair Morgenstern 2018-11-28 18:25:09 +02:00
parent defeb7431b
commit 87c3d18ac7

View File

@ -14,11 +14,11 @@ class PopulationManager {
var foodStored = 0
val specialists = Stats()
//var buildingsSpecialists = HashMap<String, Stats>()
//region pure functions
fun clone(): PopulationManager {
val toReturn = PopulationManager()
toReturn.specialists.add(specialists)
toReturn.population=population
toReturn.foodStored=foodStored
return toReturn