mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 14:48:56 +07:00
No height difference between hills and hills with jungle/forest
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user