mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 14:48:56 +07:00
TileTable no longer displays health of civilian units
This commit is contained in:
@ -151,7 +151,11 @@ class TileInfo {
|
||||
if (roadStatus !== RoadStatus.None && !isCityCenter) SB.appendln(roadStatus)
|
||||
if (improvement != null) SB.appendln(improvement!!)
|
||||
if (improvementInProgress != null) SB.appendln("$improvementInProgress in ${this.turnsToImprovement} turns")
|
||||
if (unit != null) SB.appendln(unit!!.name + "(" + unit!!.health + ")")
|
||||
if (unit != null){
|
||||
var unitString = unit!!.name
|
||||
if(unit!!.getBaseUnit().unitType!=UnitType.Civilian) unitString += "(" + unit!!.health + ")"
|
||||
SB.appendln(unitString)
|
||||
}
|
||||
return SB.toString()
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){
|
||||
.tint(Color(0x004085bf))
|
||||
pad(20f)
|
||||
background = tileTableBackground
|
||||
add(unitLabel)
|
||||
add(unitLabel).pad(10f)
|
||||
add(unitActionsTable)
|
||||
row()
|
||||
add(idleUnitButton).colspan(2)
|
||||
|
Reference in New Issue
Block a user