mirror of
https://github.com/yairm210/Unciv.git
synced 2025-10-01 07:51:53 -04:00
Welp now it builds fine
This commit is contained in:
parent
8df9a4fd7e
commit
0543c6473f
@ -342,8 +342,9 @@ class EmpireOverviewScreen(private var viewingPlayer:CivilizationInfo, defaultPa
|
|||||||
game.worldScreen.mapHolder.setCenterPosition(unit.currentTile.position)
|
game.worldScreen.mapHolder.setCenterPosition(unit.currentTile.position)
|
||||||
}
|
}
|
||||||
table.add(button).left()
|
table.add(button).left()
|
||||||
val mapUnitAction = unit.mapUnitAction
|
val mapUnitAction = unit.action
|
||||||
if (mapUnitAction != null) table.add(if(mapUnitAction.name().startsWith("Fortify")) "Fortify".tr() else mapUnitAction.name().tr()) else table.add()
|
if (mapUnitAction == null) table.add()
|
||||||
|
else table.add(if (mapUnitAction.startsWith("Fortify")) "Fortify".tr() else mapUnitAction.tr())
|
||||||
if (baseUnit.strength > 0) table.add(baseUnit.strength.toString()) else table.add()
|
if (baseUnit.strength > 0) table.add(baseUnit.strength.toString()) else table.add()
|
||||||
if (baseUnit.rangedStrength > 0) table.add(baseUnit.rangedStrength.toString()) else table.add()
|
if (baseUnit.rangedStrength > 0) table.add(baseUnit.rangedStrength.toString()) else table.add()
|
||||||
table.add(DecimalFormat("0.#").format(unit.currentMovement) + "/" + unit.getMaxMovement())
|
table.add(DecimalFormat("0.#").format(unit.currentMovement) + "/" + unit.getMaxMovement())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user