mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Fixed a bug where cities founding after creating a pantheon would not have that pantheon (#5053)
This commit is contained in:
parent
186d06faf0
commit
2e43637144
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user