From 2e43637144e8de8d6c8034561842dc5ea0f37163 Mon Sep 17 00:00:00 2001 From: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Date: Wed, 1 Sep 2021 18:21:41 +0200 Subject: [PATCH] Fixed a bug where cities founding after creating a pantheon would not have that pantheon (#5053) --- core/src/com/unciv/logic/city/CityInfo.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/src/com/unciv/logic/city/CityInfo.kt b/core/src/com/unciv/logic/city/CityInfo.kt index 74a0177670..3db5a23656 100644 --- a/core/src/com/unciv/logic/city/CityInfo.kt +++ b/core/src/com/unciv/logic/city/CityInfo.kt @@ -111,14 +111,16 @@ class CityInfo { tile.improvement = null tile.improvementInProgress = null - if (civInfo.religionManager.religionState == ReligionState.Pantheon) { - religion.addPressure(civInfo.religionManager.religion!!.name, 100) - } - val ruleset = civInfo.gameInfo.ruleSet workedTiles = hashSetOf() //reassign 1st working tile + if (startingEra in ruleset.eras) population.setPopulation(ruleset.eras[startingEra]!!.settlerPopulation) + + if (civInfo.religionManager.religionState == ReligionState.Pantheon) { + religion.addPressure(civInfo.religionManager.religion!!.name, 200 * population.population) + } + population.autoAssignPopulation() cityStats.update()