Resolved #2491 - Terrace farms are not precluded by resources

This commit is contained in:
Yair Morgenstern 2020-04-24 11:15:56 +03:00
parent 5a8b6fdb19
commit f318df68ce
3 changed files with 1 additions and 7 deletions

View file

@ -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" },

View file

@ -838,10 +838,6 @@ Crab =
Citrus =
Truffles =
Terrace farm =
+1 food for each adjacent Mountain =
Cannot improve a resource =
# Unit types
Civilian =

View file

@ -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