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

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