mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 12:48:56 +07:00
Added ALL Building icons!!!
We will no longer get errors when adopting a policy that puts things near our capital if we don't have a capital (why would you do this? I dunno but people have!)
This commit is contained in:
@ -59,9 +59,10 @@ class PolicyManager {
|
||||
}
|
||||
}
|
||||
|
||||
val hasCapital = civInfo.cities.any{it.isCapital()}
|
||||
when (policy.name) {
|
||||
"Collective Rule" -> civInfo.placeUnitNearTile(civInfo.getCapital().location, "Settler")
|
||||
"Citizenship" -> civInfo.placeUnitNearTile(civInfo.getCapital().location, "Worker")
|
||||
"Collective Rule" -> if(hasCapital) civInfo.placeUnitNearTile(civInfo.getCapital().location, "Settler")
|
||||
"Citizenship" -> if(hasCapital) civInfo.placeUnitNearTile(civInfo.getCapital().location, "Worker")
|
||||
"Representation", "Reformation" -> civInfo.goldenAges.enterGoldenAge()
|
||||
"Scientific Revolution" -> civInfo.tech.freeTechs += 2
|
||||
"Legalism" ->
|
||||
|
Reference in New Issue
Block a user