No height difference between hills and hills with jungle/forest

This commit is contained in:
Yair Morgenstern 2019-01-21 23:10:03 +02:00
parent d7067d2835
commit 9ba73c4a6f
3 changed files with 7 additions and 7 deletions

1
.gitignore vendored
View File

@ -131,3 +131,4 @@ android/release/output.json
android/release/android-release.apk
android/release/release/android.aab
android/assets/fonts/
android/release/android.aab

View File

@ -21,8 +21,8 @@ android {
applicationId "com.unciv.app"
minSdkVersion 14
targetSdkVersion 28
versionCode 193
versionName "2.12.2"
versionCode 194
versionName "2.12.3"
}
// Had to add this crap for Travis to build, it wanted to sign the app

View File

@ -87,11 +87,10 @@ open class TileInfo {
}
fun getHeight(): Int {
var height = 0
if (listOf("Forest", "Jungle").contains(terrainFeature)) height += 1
if (baseTerrain == "Hill") height += 2
if(baseTerrain=="Mountain") height = 4
return height
if (baseTerrain=="Mountain") return 4
if (baseTerrain == "Hill") return 2
if (listOf("Forest", "Jungle").contains(terrainFeature)) return 1
return 0
}
fun getBaseTerrain(): Terrain = baseTerrainObject