Added more unit tests for uniques; added missing unique implementations (#6886)

* Added more unit tests for uniques; added missing implementations

* This of course shouldn't go here as there is another function for it

* Stylistic changes

* This generates better unique examples

* Reviews

* Reordered for efficiency

* Reverted improvement percentage bonuses applying to tiles
This commit is contained in:
Xander Lenstra
2022-05-22 12:12:10 +02:00
committed by GitHub
parent f34b97a421
commit 3754108391
7 changed files with 224 additions and 75 deletions

View File

@ -98,11 +98,6 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Global, FollowerBelief
??? example "[stats] whenever a Great Person is expended"
Example: "[+1 Gold, +2 Production] whenever a Great Person is expended"
Applicable to: Global
??? example "[stats] from [tileFilter] tiles [cityFilter]"
Example: "[+1 Gold, +2 Production] from [Farm] tiles [in all cities]"
@ -133,12 +128,12 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Global, FollowerBelief
??? example "[relativeAmount]% [stat] from every [tileFilter/specialist/buildingName]"
??? example "[relativeAmount]% [stat] from every [tileFilter/buildingFilter]"
Example: "[+20]% [Culture] from every [Farm]"
Applicable to: Global, FollowerBelief
??? example "[relativeAmount]% Yield from every [tileFilter]"
??? example "[relativeAmount]% Yield from every [tileFilter/buildingFilter]"
Example: "[+20]% Yield from every [Farm]"
Applicable to: Global, FollowerBelief
@ -290,6 +285,11 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Global
??? example "[stats] whenever a Great Person is expended"
Example: "[+1 Gold, +2 Production] whenever a Great Person is expended"
Applicable to: Global
??? example "[relativeAmount]% Unhappiness from [populationFilter] [cityFilter]"
Example: "[+20]% Unhappiness from [Followers of this Religion] [in all cities]"