mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 09:17:47 +07:00
Human players can no longer see each other's construction info
This commit is contained in:
parent
2b8946f5e7
commit
d5b247e2c1
@ -21,8 +21,8 @@ android {
|
||||
applicationId "com.unciv.app"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 28
|
||||
versionCode 232
|
||||
versionName "2.15.0-patch1"
|
||||
versionCode 233
|
||||
versionName "2.15.0-patch2"
|
||||
}
|
||||
|
||||
// Had to add this crap for Travis to build, it wanted to sign the app
|
||||
|
@ -246,7 +246,7 @@ open class TileInfo {
|
||||
var cityString = city.name
|
||||
if(isViewableToPlayer) cityString += " ("+city.health+")"
|
||||
lineList += cityString
|
||||
if(UnCivGame.Current.viewEntireMapForDebug || city.civInfo.isPlayerCivilization())
|
||||
if(UnCivGame.Current.viewEntireMapForDebug || city.civInfo.isCurrentPlayer())
|
||||
lineList += city.cityConstructions.getProductionForTileInfo()
|
||||
}
|
||||
lineList += baseTerrain.tr()
|
||||
|
@ -56,14 +56,14 @@ class CityButton(val city: CityInfo, internal val tileGroup: WorldTileGroup, ski
|
||||
if (city.isCapital()) {
|
||||
val starImage = ImageGetter.getImage("OtherIcons/Star.png").apply { color = Color.LIGHT_GRAY }
|
||||
add(starImage).size(20f).pad(2f).padLeft(5f)
|
||||
} else if (city.civInfo.isPlayerCivilization() && city.cityStats.isConnectedToCapital(RoadStatus.Road)) {
|
||||
} else if (city.civInfo.isCurrentPlayer() && city.cityStats.isConnectedToCapital(RoadStatus.Road)) {
|
||||
val connectionImage = ImageGetter.getStatIcon("CityConnection")
|
||||
add(connectionImage).size(20f).pad(2f).padLeft(5f)
|
||||
} else {
|
||||
add()
|
||||
} // this is so the health bar is always 2 columns wide
|
||||
add(label).pad(10f)
|
||||
if (UnCivGame.Current.viewEntireMapForDebug || city.civInfo.isPlayerCivilization()) {
|
||||
if (UnCivGame.Current.viewEntireMapForDebug || city.civInfo.isCurrentPlayer()) {
|
||||
add(getConstructionGroup(city.cityConstructions)).padRight(5f)
|
||||
}
|
||||
pack()
|
||||
|
Loading…
Reference in New Issue
Block a user