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:
Yair Morgenstern
2018-08-29 12:36:58 +03:00
parent 9e5208dd8c
commit bd4e358bd8
71 changed files with 726 additions and 181 deletions

View File

@ -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" ->