mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-11 00:08:58 +07:00
List which city owns each tile in the city screen UI (#7631)
This commit is contained in:

committed by
GitHub

parent
28f65a7599
commit
8f23ae52cc
@ -1053,6 +1053,7 @@ Convert production to science at a rate of [rate] to 1 =
|
||||
Convert production to [stat] at a rate of [rate] to 1 =
|
||||
Production to [stat] conversion in cities changed by [relativeAmount]% =
|
||||
The city will not produce anything. =
|
||||
Owned by [cityName] =
|
||||
Worked by [cityName] =
|
||||
Lock =
|
||||
Unlock =
|
||||
|
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user