Skip to content

Commit 32e3cb2

Browse files
r3versiyairm210
authored andcommitted
Hotfix Legalism on foundation (#1747)
1 parent e4308f9 commit 32e3cb2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/com/unciv/logic/city/CityInfo.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,14 @@ class CityInfo {
7676
civInfo.cities = civInfo.cities.toMutableList().apply { add(this@CityInfo) }
7777
civInfo.addNotification("[$name] has been founded!", cityLocation, Color.PURPLE)
7878

79-
civInfo.policies.tryAddLegalismBuildings()
80-
8179
if (civInfo.cities.size == 1) {
8280
cityConstructions.addBuilding("Palace")
8381
cityConstructions.currentConstruction = Constants.worker // Default for first city only!
8482
}
8583

84+
if (civInfo.policies.isAdopted("Legalism"))
85+
civInfo.policies.tryAddLegalismBuildings()
86+
8687
expansion.reset()
8788

8889
val tile = getCenterTile()

0 commit comments

Comments
 (0)