mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 21:14:41 +07:00
No height difference between hills and hills with jungle/forest
This commit is contained in:
parent
d7067d2835
commit
9ba73c4a6f
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user