Added city health in text description of tile

This commit is contained in:
Yair Morgenstern 2018-06-10 17:42:16 +03:00
parent d695cbd6f1
commit adeaa5907a
4 changed files with 4 additions and 5 deletions

View File

@ -21,8 +21,8 @@ android {
applicationId "com.unciv.game"
minSdkVersion 14
targetSdkVersion 26
versionCode 75
versionName "2.4.5"
versionCode 77
versionName "2.4.7"
}
buildTypes {
release {

View File

@ -23,7 +23,7 @@ class GameStarter(){
for (civname in GameBasics.Civilizations.keys.filterNot { it=="Barbarians" || it==civilization }.take(numberOfCivs)) {
val startingLocation = freeTiles.toList().getRandom().position
gameInfo.civilizations.add(CivilizationInfo(civname, startingLocation, gameInfo)) // all the rest whatever
gameInfo.civilizations.add(CivilizationInfo(civname, startingLocation, gameInfo))
freeTiles.removeAll(gameInfo.tileMap.getTilesInDistance(startingLocation, 6))
}

View File

@ -10,7 +10,6 @@ import com.unciv.models.gamebasics.GameBasics
import com.unciv.ui.utils.getRandom
class GameInfo {
//var gameOptions=HashMap<String,String>()
var notifications = mutableListOf<Notification>()
var tutorial = mutableListOf<String>()
var civilizations = mutableListOf<CivilizationInfo>()

View File

@ -149,7 +149,7 @@ open class TileInfo {
val SB = StringBuilder()
if (isCityCenter()) {
val city = getCity()!!
SB.appendln(city.name+ ",\r\n" + city.cityConstructions.getProductionForTileInfo())
SB.appendln(city.name+ " ("+city.health+"),\r\n" + city.cityConstructions.getProductionForTileInfo())
}
SB.appendln(this.baseTerrain)
if (terrainFeature != null) SB.appendln(terrainFeature!!)