Resolved #2491 - Terrace farms are not precluded by resources
This commit is contained in:
parent
5a8b6fdb19
commit
f318df68ce
3 changed files with 1 additions and 7 deletions
|
@ -186,12 +186,11 @@
|
|||
"uniqueTo": "Inca",
|
||||
"food": 1,
|
||||
"turnsToBuild": 7,
|
||||
"uniques": ["+1 food for each adjacent Mountain","Cannot improve a resource"],
|
||||
"uniques": ["+1 food for each adjacent Mountain"],
|
||||
"techRequired": "Construction",
|
||||
"improvingTech": "Fertilizer",
|
||||
"improvingTechStats": {"food":1},
|
||||
"terrainsCanBeBuiltOn": ["Hill"]
|
||||
//It can be colored in lemon
|
||||
},
|
||||
|
||||
{ "name": "Ancient ruins" },
|
||||
|
|
|
@ -838,10 +838,6 @@ Crab =
|
|||
Citrus =
|
||||
Truffles =
|
||||
|
||||
Terrace farm =
|
||||
+1 food for each adjacent Mountain =
|
||||
Cannot improve a resource =
|
||||
|
||||
# Unit types
|
||||
|
||||
Civilian =
|
||||
|
|
|
@ -271,7 +271,6 @@ open class TileInfo {
|
|||
improvement.name == this.improvement -> false
|
||||
improvement.uniqueTo != null && improvement.uniqueTo != civInfo.civName -> false
|
||||
improvement.techRequired?.let { civInfo.tech.isResearched(it) } == false -> false
|
||||
"Cannot improve a resource" in improvement.uniques && resource != null -> false
|
||||
improvement.terrainsCanBeBuiltOn.contains(topTerrain.name) -> true
|
||||
improvement.name == "Road" && roadStatus == RoadStatus.None -> true
|
||||
improvement.name == "Railroad" && this.roadStatus != RoadStatus.Railroad -> true
|
||||
|
|
Loading…
Reference in a new issue