mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 21:11:35 +07:00
Spectators can now see selected civ city-state influence bars (#11029)
This commit is contained in:
parent
7efc71bd28
commit
d0c2df995d
@ -428,9 +428,10 @@ class CityButton(val city: City, private val tileGroup: TileGroup) : Table(BaseS
|
||||
cityTable = CityTable(city)
|
||||
add(cityTable).row()
|
||||
|
||||
val selectedPlayer = GUI.getSelectedPlayer()
|
||||
// If city state - add influence bar
|
||||
if (city.civ.isCityState() && city.civ.knows(viewingPlayer)) {
|
||||
val diplomacyManager = city.civ.getDiplomacyManager(viewingPlayer)
|
||||
if (city.civ.isCityState() && city.civ.knows(selectedPlayer)) {
|
||||
val diplomacyManager = city.civ.getDiplomacyManager(selectedPlayer)
|
||||
add(InfluenceTable(diplomacyManager.getInfluence(), diplomacyManager.relationshipLevel())).padTop(1f).row()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user