mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-06 07:31:26 +07:00
Added city health in text description of tile
This commit is contained in:
parent
d695cbd6f1
commit
adeaa5907a
@ -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 {
|
||||
|
@ -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))
|
||||
}
|
||||
|
||||
|
@ -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>()
|
||||
|
@ -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!!)
|
||||
|
Loading…
Reference in New Issue
Block a user