Revert "Changed all "[] from [] tiles" to "[] from every []""

This reverts commit c89041e2d4.
This commit is contained in:
Yair Morgenstern 2020-08-16 20:16:01 +03:00
parent 1937e3f3c9
commit f2f14b6570
3 changed files with 8 additions and 10 deletions

View file

@ -167,7 +167,7 @@
"greatPersonPoints": {"gold": 1},
"isWonder": true,
"uniques": ["Provides a sum of gold each time you spend a Great Person",
"[+2 Gold] from every [Marble]", "[+2 Gold] from every [Stone]"]
"[+2 Gold] from [Marble] tiles", "[+2 Gold] from [Stone] tiles"]
"requiredTech": "Masonry"
"quote": "'The whole earth is the tomb of heroic men and their story is not given only on stone over their clay but abides everywhere without visible symbol woven into the stuff of other men's lives.' - Pericles"
},
@ -179,7 +179,7 @@
"hurryCostModifier": 25,
"maintenance": 1,
"resourceBonusStats": {"food": 1},
"uniques": ["Can only be built in coastal cities", "[+1 Food] from every [Ocean]", "[+1 Food] from every [Coast]"]
"uniques": ["Can only be built in coastal cities", "[+1 Food] from [Ocean] tiles", "[+1 Food] from [Coast] tiles"]
"requiredTech": "Optics"
},
{
@ -298,7 +298,7 @@
"hurryCostModifier": 25,
"percentStatBonus": {"gold": 25},
"uniques": ["Provides 1 extra copy of each improved luxury resource near this City",
"[+2 Gold] from every [Oil]", "[+2 Gold] from every [Oasis]"],
"[+2 Gold] from [Oil] tiles", "[+2 Gold] from [Oasis] tiles"],
"requiredTech": "Currency"
},
{
@ -411,7 +411,7 @@
"production": 2,
"specialistSlots": {"production": 1},
"hurryCostModifier": 25,
"uniques": ["[+1 Production] from every [Forest]"],
"uniques": ["[+1 Production] from [Forest] tiles"],
"requiredTech": "Metal Casting"
},
{
@ -438,7 +438,7 @@
"percentStatBonus": {"science": 33},
"specialistSlots": {"science": 2},
"requiredBuilding": "Library",
"uniques": ["[+2 Science] from every [Jungle]"],
"uniques": ["[+2 Science] from [Jungle] tiles"],
"requiredTech": "Education"
},
{
@ -451,7 +451,7 @@
"specialistSlots": {"science": 2},
"culture": 3,
"requiredBuilding": "Library",
"uniques": ["[+2 Science] from every [Jungle]"],
"uniques": ["[+2 Science] from [Jungle] tiles"],
"requiredTech": "Education"
},
{

View file

@ -195,7 +195,7 @@
"innerColor": [0,0,0],
"unique": "SIBERIAN_RICHES",
"uniqueName": "Siberian Riches",
"uniques": ["[+1 Production] from every [Strategic resource]","Double quantity of [Horses] produced",
"uniques": ["[+1 Production] from [Strategic resource] tiles","Double quantity of [Horses] produced",
"Double quantity of [Iron] produced","Double quantity of [Uranium] produced"]
"cities": ["Moscow","St. Petersburg","Novgorod","Rostov","Yaroslavl","Yekaterinburg","Yakutsk","Vladivostok","Smolensk","Orenburg",
"Krasnoyarsk","Khabarovsk","Bryansk","Tver","Novosibirsk","Magadan","Murmansk","Irkutsk","Chita","Samara",

View file

@ -177,7 +177,6 @@ open class TileInfo {
stats.add(terrainFeatureBase)
}
// This is to be deprecated and converted to [] from every [] - keeping it here to that mods with this can still work for now
if(city!=null) for(unique in city.cityConstructions.builtBuildingUniqueMap.getUniques("[] from [] tiles")) {
val tileType = unique.params[1]
if (baseTerrain == tileType || terrainFeature == tileType || resource == tileType || improvement == tileType
@ -187,8 +186,7 @@ open class TileInfo {
if(city!=null) for(unique in city.civInfo.getMatchingUniques("[] from every []")) {
val tileType = unique.params[1]
if (baseTerrain == tileType || terrainFeature == tileType || resource == tileType || improvement == tileType
|| (tileType == "Strategic resource" && hasViewableResource(observingCiv) && getTileResource().resourceType == ResourceType.Strategic))
if (baseTerrain == tileType || terrainFeature == tileType)
stats.add(Stats.parse(unique.params[0]))
}