mirror of
https://github.com/yairm210/Unciv.git
synced 2025-10-02 16:31:15 -04:00
Made water oil wells require the Refrigeration tech (#4889)
* Made water oil wells require the Refrigeration tech Oil wells can now only be created on water with the refrigeration technology. This is not the ideal solution: it would be preferable to support multiple improvements for a single resource, to add offshore platforms as a separate improvement for coastal oil that requires refrigeration and to disable building oil wells on coast. Allowing multiple improvements for a resource would however be a much more significant refactor. * Added back "terrainsCanBeBuiltOn": ["Coast"]
This commit is contained in:
parent
b60c2c71dd
commit
4114296cbe
@ -52,6 +52,7 @@
|
|||||||
"terrainsCanBeBuiltOn": ["Coast"],
|
"terrainsCanBeBuiltOn": ["Coast"],
|
||||||
"turnsToBuild": 9,
|
"turnsToBuild": 9,
|
||||||
"techRequired": "Biology",
|
"techRequired": "Biology",
|
||||||
|
"uniques": ["Cannot be built on [Coast] tiles until [Refrigeration] is discovered"],
|
||||||
"shortcutKey": "W"
|
"shortcutKey": "W"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -387,6 +387,10 @@ open class TileInfo {
|
|||||||
improvement.uniqueObjects.any {
|
improvement.uniqueObjects.any {
|
||||||
it.placeholderText == "Obsolete with []" && civInfo.tech.isResearched(it.params[0])
|
it.placeholderText == "Obsolete with []" && civInfo.tech.isResearched(it.params[0])
|
||||||
} -> return false
|
} -> return false
|
||||||
|
improvement.uniqueObjects.any {
|
||||||
|
it.placeholderText == "Cannot be built on [] tiles until [] is discovered" &&
|
||||||
|
matchesTerrainFilter(it.params[0]) && !civInfo.tech.isResearched(it.params[1])
|
||||||
|
} -> false
|
||||||
else -> canImprovementBeBuiltHere(improvement, hasViewableResource(civInfo))
|
else -> canImprovementBeBuiltHere(improvement, hasViewableResource(civInfo))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user