mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 05:14:32 -04:00
Rough terrain specified through uniques
This commit is contained in:
parent
e424ec4a91
commit
b312d24d4a
@ -68,7 +68,7 @@
|
||||
"overrideStats": true,
|
||||
"defenceBonus": 0.25,
|
||||
"RGB": [105,125,72],
|
||||
"rough": true
|
||||
"uniques": ["Rough terrain"]
|
||||
},
|
||||
{
|
||||
"name": "Mountain",
|
||||
@ -96,8 +96,7 @@
|
||||
"unbuildable": true,
|
||||
"defenceBonus": 0.25,
|
||||
"occursOn": ["Tundra","Plains","Grassland","Hill"],
|
||||
"rough": true,
|
||||
"uniques": ["Provides a one-time Production bonus to the closest city when cut down"]
|
||||
"uniques": ["Provides a one-time Production bonus to the closest city when cut down", "Rough terrain"]
|
||||
},
|
||||
{
|
||||
"name": "Jungle",
|
||||
@ -108,7 +107,7 @@
|
||||
"unbuildable": true,
|
||||
"defenceBonus": 0.25,
|
||||
"occursOn": ["Plains","Grassland"],
|
||||
"rough": true
|
||||
"uniques": ["Rough terrain"]
|
||||
},
|
||||
{
|
||||
"name": "Marsh",
|
||||
|
@ -438,6 +438,7 @@ open class TileInfo {
|
||||
}
|
||||
|
||||
fun isRoughTerrain() = getBaseTerrain().rough || getTerrainFeatures().any { it.rough }
|
||||
|| getBaseTerrain().uniques.contains("Rough") || getTerrainFeatures().any { it.uniques.contains("Rough") }
|
||||
|
||||
override fun toString(): String { // for debugging, it helps to see what you're doing
|
||||
return toString(null)
|
||||
|
@ -35,6 +35,8 @@ class Terrain : NamedStats() {
|
||||
var movementCost = 1
|
||||
var defenceBonus:Float = 0f
|
||||
var impassable = false
|
||||
|
||||
@Deprecated("As of 3.14.1")
|
||||
var rough = false
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user