Skip to content

Commit

Permalink
No height difference between hills and hills with jungle/forest
Browse files Browse the repository at this point in the history
  • Loading branch information
yairm210 committed Jan 21, 2019
1 parent d7067d2 commit 9ba73c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions core/src/com/unciv/logic/map/TileInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ba73c4

Please sign in to comment.