Welp now it builds fine

This commit is contained in:
Yair Morgenstern 2020-10-08 17:34:35 +03:00
parent 8df9a4fd7e
commit 0543c6473f

View File

@ -342,8 +342,9 @@ class EmpireOverviewScreen(private var viewingPlayer:CivilizationInfo, defaultPa
game.worldScreen.mapHolder.setCenterPosition(unit.currentTile.position)
}
table.add(button).left()
val mapUnitAction = unit.mapUnitAction
if (mapUnitAction != null) table.add(if(mapUnitAction.name().startsWith("Fortify")) "Fortify".tr() else mapUnitAction.name().tr()) else table.add()
val mapUnitAction = unit.action
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.rangedStrength > 0) table.add(baseUnit.rangedStrength.toString()) else table.add()
table.add(DecimalFormat("0.#").format(unit.currentMovement) + "/" + unit.getMaxMovement())