List which city owns each tile in the city screen UI (#7631)

This commit is contained in:
OptimizedForDensity
2022-08-12 07:26:09 -04:00
committed by GitHub
parent 28f65a7599
commit 8f23ae52cc
2 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,9 @@ class CityScreenTileTable(private val cityScreen: CityScreen): Table() {
innerTable.add(buyTileButton).padTop(5f).row()
}
if (selectedTile.owningCity != null)
innerTable.add("Owned by [${selectedTile.owningCity!!.name}]".toLabel()).row()
if (city.civInfo.cities.filterNot { it == city }.any { it.isWorked(selectedTile) })
innerTable.add("Worked by [${selectedTile.getWorkingCity()!!.name}]".toLabel()).row()