Allow filters in the ModOptions "ToRemove" lists (#8730)

* Allow "*" wildcard in the ModOptions "ToRemove" lists

* Allow filters in the ModOptions "ToRemove" lists
This commit is contained in:
SomeTroglodyte
2023-02-23 21:40:47 +01:00
committed by GitHub
parent 33ddb2dc3a
commit 5d07fd981b
5 changed files with 86 additions and 26 deletions

View File

@ -96,6 +96,18 @@ It can be any value noted in `baseUnitFilter` or one of the following:
- `Barbarians`, `Barbarian`
- Again, any combination of the above is also allowed, e.g. `[{Wounded} {Water}]` units.
## nationFilter
At the moment only implemented for [ModOptions.nationsToRemove](../Other/Miscellaneous-JSON-files.md#modoptionsjson).
Allowed values are:
- `All`
- `Major`
- `CityState`
- The name of a Nation
- A unique a Nation has (verbatim, no placeholders)
## populationFilter
A filter determining a part of the population of a city. It can be any of the following values:
@ -133,6 +145,17 @@ For example: `+1 Science`.
These can be strung together with ", " between them, for example: `+2 Production, +3 Food`.
## technologyFilter
At the moment only implemented for [ModOptions.techsToRemove](../Other/Miscellaneous-JSON-files.md#modoptionsjson).
Allowed values are:
- `All`
- The name of an Era
- The name of a Technology
- A unique a Technology has (verbatim, no placeholders)
## terrainFilter
This indicates the terrain on a single tile. The following values are allowed: