mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 14:57:58 +07:00
City specialists now stay through game restarts
This commit is contained in:
@ -14,11 +14,11 @@ class PopulationManager {
|
|||||||
var foodStored = 0
|
var foodStored = 0
|
||||||
|
|
||||||
val specialists = Stats()
|
val specialists = Stats()
|
||||||
//var buildingsSpecialists = HashMap<String, Stats>()
|
|
||||||
|
|
||||||
//region pure functions
|
//region pure functions
|
||||||
fun clone(): PopulationManager {
|
fun clone(): PopulationManager {
|
||||||
val toReturn = PopulationManager()
|
val toReturn = PopulationManager()
|
||||||
|
toReturn.specialists.add(specialists)
|
||||||
toReturn.population=population
|
toReturn.population=population
|
||||||
toReturn.foodStored=foodStored
|
toReturn.foodStored=foodStored
|
||||||
return toReturn
|
return toReturn
|
||||||
|
Reference in New Issue
Block a user