Resolved #551 - Update city stats on production change

This commit is contained in:
Yair Morgenstern 2019-03-12 19:24:50 +02:00
parent f69be35647
commit 81b29a5b57
4 changed files with 2 additions and 10 deletions

View file

@ -8358,13 +8358,6 @@
Italian:"Attacco in massa III"
German:"Rudeltaktik III"
}
/*
//Air units promotions (suggested by Smashfanful)
"Wolfpack III":{
Italian:"Attacco in massa III"
German:"Rudeltaktik III"
}
*/
// Civilopedia texts
"Basics":{

View file

@ -21,7 +21,7 @@ android {
applicationId "com.unciv.app"
minSdkVersion 14
targetSdkVersion 28
versionCode 214
versionCode 215
versionName "2.13.13"
}

View file

@ -34,7 +34,7 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
pickProductionButton.add(buttonText.toLabel().setFontColor(Color.WHITE))
pickProductionButton.onClick {
cityScreen.city.cityConstructions.currentConstruction = construction
update()
cityScreen.update()
}
if(construction==cityScreen.city.cityConstructions.currentConstruction)
pickProductionButton.color= Color.GREEN

View file

@ -135,7 +135,6 @@ class BattleTable(val worldScreen: WorldScreen): Table() {
if (attacker.canAttack()) {
if (attacker is MapUnitCombatant) {
attacker.unit.getDistanceToTiles()
attackableEnemy = UnitAutomation()
.getAttackableEnemies(attacker.unit, attacker.unit.getDistanceToTiles())
.firstOrNull{ it.tileToAttack == defender.getTile()}