Great General typed uniques and improved moddability (#6818)

* Great General UniqueTyped and improved moddability - draft

* Great General UniqueTyped and improved moddability - reviews

* Great General UniqueTyped and improved moddability - no reason not to cache another

* Integration with JackRainy's solution

* Integration with JackRainy's solution - part 2

* Revert of maxGreatGeneralBonusRadius logic

* Minor refactoring

* Code review: minor refactoring

* Keep the warning for the modders about the obsolete unique

* Code review: Better wording for the unique

Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com>
This commit is contained in:
Jack Rainy
2022-05-18 00:02:53 +03:00
committed by GitHub
parent 7079619fe2
commit 4986505363
16 changed files with 192 additions and 83 deletions

View File

@ -458,7 +458,7 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Global
??? example "Great General provides double combat bonus"
Applicable to: Global
Applicable to: Global, Unit
??? example "Receive a tech boost when scientific buildings/wonders are built in capital"
Applicable to: Global
@ -998,6 +998,11 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Unit
??? example "[relativeAmount]% Strength bonus for [mapUnitFilter] units in [amount] tiles"
Example: "[+20]% Strength bonus for [Wounded] units in [3] tiles"
Applicable to: Unit
??? example "May found a religion"
Applicable to: Unit
@ -1214,9 +1219,6 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
Applicable to: Unit
??? example "Bonus for units in 2 tile radius 15%"
Applicable to: Unit
??? example "Can speed up construction of a building"
Applicable to: Unit