Add a Unique allowing an Improvement to specify which Resource(s) it improves (#11718)

* Linting

* Add UniqueType.ImprovesResources

* Address reviews and extensive Kdoc

* Oops, better include the generated stuff
This commit is contained in:
SomeTroglodyte
2024-06-27 22:26:14 +02:00
committed by GitHub
parent c9bcf10f2a
commit 8da58ed34a
9 changed files with 103 additions and 19 deletions

View File

@ -11,7 +11,7 @@ Note that all of these are case-sensitive!
## General Filter Rules
All filters except for `populationFilter` accept multiple values in the format: `{A} {B} {C}` etc, meaning "the object must match ALL of these filters"
All filters except for `populationFilter` and `resourceFilter` accept multiple values in the format: `{A} {B} {C}` etc, meaning "the object must match ALL of these filters"
> Example: `[{Military} {Water}] units`, `[{Wounded} {Armor}] units`, etc.
@ -206,6 +206,11 @@ For example: `+1 Science`.
These can be strung together with ", " between them, for example: `+2 Production, +3 Food`.
## resourceFilter
At the moment, only used for the `"Improves [resourceFilter] resource in this tile"` Unique on Improvements.
Allows filtering resources by their name, their type, or by any Stat listed in their `improvementStats` property. The `all` keyword works too.
## stockpiledResource
This indicates a text that corresponds to a custom Stockpile Resource.