mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
Added tests for parameters for complex filters, fixed nested complex filter returning 'possible filtering' when it should have been known
This commit is contained in:
@ -13,17 +13,17 @@ Note that all of these are case-sensitive!
|
||||
|
||||
All filters except for `cityFilter` and `populationFilter` 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.
|
||||
> Example: `[{Military} {Water}] units`, `[{Wounded} {Armor}] units`, etc.
|
||||
|
||||
No space or other text is allowed between the `[` and the first `{`.
|
||||
|
||||
All filters accept `non-[filter]` as a possible value
|
||||
|
||||
Example: `[non-[Wounded]] units`
|
||||
> Example: `[non-[Wounded]] units`
|
||||
|
||||
These can be combined by having the values be negative filters
|
||||
|
||||
Example: `[{non-[Wounded]} {Armor}] units`
|
||||
> Example: `[{non-[Wounded]} {Armor}] units`
|
||||
|
||||
These CANNOT be combined in the other way - e.g. `[non-[{Wounded} {Armor}]] units` is NOT valid and will fail to register any units.
|
||||
|
||||
|
Reference in New Issue
Block a user