Typed some uniques and fixed a policy not working (#5848)

* Typed some uniques, fixing a policy not working

* Repurposed an unused function to remove .unit in some places

* Fixed compilation errors
This commit is contained in:
Xander Lenstra
2021-12-25 16:55:14 +01:00
committed by GitHub
parent ea51c7155b
commit ecadfb53fa
11 changed files with 136 additions and 52 deletions

View File

@ -220,6 +220,11 @@ Example: "[20]% Strength"
Applicable to: Global, Unit
#### [amount]% Strength decreasing with distance from the capital
Example: "[20]% Strength decreasing with distance from the capital"
Applicable to: Global, Unit
#### [amount] Movement
Example: "[20] Movement"
@ -238,6 +243,36 @@ Applicable to: Global, Unit
#### Normal vision when embarked
Applicable to: Global, Unit
#### [amount]% maintenance costs
Example: "[20]% maintenance costs"
Applicable to: Global, Unit
#### [greatPerson] is earned [amount]% faster
Example: "[greatPerson] is earned [20]% faster"
Applicable to: Global, Unit
#### Upon capturing a city, receive [amount] times its [stat] production as [stat] immediately
Example: "Upon capturing a city, receive [20] times its [Culture] production as [Culture] immediately"
Applicable to: Global, Unit
#### Earn [amount]% of killed [mapUnitFilter] unit's [costOrStrength] as [stat]
Example: "Earn [20]% of killed [Wounded] unit's [costOrStrength] as [Culture]"
Applicable to: Global, Unit
#### [amount] XP gained from combat
Example: "[20] XP gained from combat"
Applicable to: Global, Unit
#### [amount]% XP gained from combat
Example: "[20]% XP gained from combat"
Applicable to: Global, Unit
#### Free [baseUnitFilter] appears
Example: "Free [Melee] appears"
@ -337,6 +372,11 @@ Example: "[20]% [Culture] from every follower, up to [20]%"
Applicable to: FollowerBelief
#### Earn [amount]% of [mapUnitFilter] unit's [costOrStrength] as [stat] when killed within 4 tiles of a city following this religion
Example: "Earn [20]% of [Wounded] unit's [costOrStrength] as [Culture] when killed within 4 tiles of a city following this religion"
Applicable to: FollowerBelief
## Building uniques
#### Remove extra unhappiness from annexed cities
Applicable to: Building
@ -450,11 +490,6 @@ Example: "Can see invisible [Wounded] units"
Applicable to: Unit
#### [amount]% Strength decreasing with distance from the capital
Example: "[20]% Strength decreasing with distance from the capital"
Applicable to: Unit
#### May found a religion
Applicable to: Unit
@ -490,11 +525,6 @@ Example: "Cannot be carried by [Wounded] units"
Applicable to: Unit
#### [amount]% maintenance costs
Example: "[20]% maintenance costs"
Applicable to: Unit
#### Double movement in [terrainFilter]
Example: "Double movement in [Grassland]"
@ -1051,6 +1081,7 @@ Applicable to: Conditional
- "+[amount]% Production when constructing [constructionFilter] [cityFilter]" - Deprecated As of 3.17.10 - removed 3.18.5, replace with "[amount]% Production when constructing [buildingFilter] buildings [cityFilter]"
- "[stats] from every specialist" - Deprecated As of 3.16.16 - removed 3.17.11, replace with "[stats] from every specialist [in all cities]"
- "[stats] if this city has at least [amount] specialists" - Deprecated As of 3.16.16 - removed 3.17.11, replace with "[stats] <if this city has at least [amount] specialists>"
- "[mapUnitFilter] units gain [amount]% more Experience from combat" - Deprecated As of 3.18.12, replace with "[amount]% XP gained from combat <for [mapUnitFilter] units>"
- "Not displayed as an available construction unless [buildingName] is built" - Deprecated As of 3.16.11, replace with "Not displayed as an available construction without [buildingName]"
- "[stats] once [tech] is discovered" - Deprecated As of 3.17.10, replace with "[stats] <after discovering [tech]>"
- "Double movement in coast" - Deprecated As of 3.17.1 - removed 3.17.13, replace with "Double movement in [terrainFilter]"
@ -1068,5 +1099,6 @@ Applicable to: Conditional
- "+[amount]% Strength in [tileFilter]" - Deprecated As of 3.17.5 - removed 3.18.5, replace with "[amount]% Strength <when fighting in [tileFilter] tiles>"
- "[amount] Visibility Range" - Deprecated As of 3.17.5 - removed 3.18.5, replace with "[amount] Sight"
- "Limited Visibility" - Deprecated As of 3.17.5 - removed 3.18.5, replace with "[-1] Sight"
- "[amount]% Bonus XP gain" - Deprecated As of 3.18.12, replace with "[amount]% XP gained from combat"
- "[stats] on [tileFilter] tiles once [tech] is discovered" - Deprecated As of 3.17.10, replace with "[stats] from [tileFilter] tiles <after discovering [tech]>"
- "Deal 30 damage to adjacent enemy units" - Deprecated As of 3.17.10, replace with "Adjacent enemy units ending their turn take [30] damage"