"[] from every []" can accomodate specialist names

This commit is contained in:
Yair Morgenstern
2021-04-15 12:50:30 +03:00
parent ffd9d68bce
commit 6045e0d5a4
2 changed files with 4 additions and 1 deletions

View File

@ -611,7 +611,7 @@
{
"name": "Future Tech",
"row": 5,
"prerequisites": ["Nanotechnology","Particle Physics","Satellites"],
"prerequisites": ["Nanotechnology","Particle Physics"],
"uniques": ["Who knows what the future holds?", "Can be continually researched"],
"quote": "'I think we agree, the past is over.' - George W. Bush"
}

View File

@ -241,6 +241,9 @@ class CityStats {
val stats = specialist.clone()
for (unique in cityInfo.civInfo.getMatchingUniques("[] from every specialist"))
stats.add(unique.stats)
for (unique in cityInfo.civInfo.getMatchingUniques("[] from every []"))
if (unique.params[1] == specialistName)
stats.add(unique.stats)
return stats
}