mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 17:28:57 +07:00
Hotfix Legalism on foundation (#1747)
This commit is contained in:

committed by
Yair Morgenstern

parent
e4308f947e
commit
32e3cb2112
@ -76,13 +76,14 @@ class CityInfo {
|
|||||||
civInfo.cities = civInfo.cities.toMutableList().apply { add(this@CityInfo) }
|
civInfo.cities = civInfo.cities.toMutableList().apply { add(this@CityInfo) }
|
||||||
civInfo.addNotification("[$name] has been founded!", cityLocation, Color.PURPLE)
|
civInfo.addNotification("[$name] has been founded!", cityLocation, Color.PURPLE)
|
||||||
|
|
||||||
civInfo.policies.tryAddLegalismBuildings()
|
|
||||||
|
|
||||||
if (civInfo.cities.size == 1) {
|
if (civInfo.cities.size == 1) {
|
||||||
cityConstructions.addBuilding("Palace")
|
cityConstructions.addBuilding("Palace")
|
||||||
cityConstructions.currentConstruction = Constants.worker // Default for first city only!
|
cityConstructions.currentConstruction = Constants.worker // Default for first city only!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (civInfo.policies.isAdopted("Legalism"))
|
||||||
|
civInfo.policies.tryAddLegalismBuildings()
|
||||||
|
|
||||||
expansion.reset()
|
expansion.reset()
|
||||||
|
|
||||||
val tile = getCenterTile()
|
val tile = getCenterTile()
|
||||||
|
Reference in New Issue
Block a user