mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 19:08:48 -04:00
Resolved #13089 - better resource filter documentation
This commit is contained in:
parent
5430954df3
commit
f5ba786e61
@ -195,6 +195,7 @@ class TileResource : RulesetStatsObject(), GameResource {
|
||||
fun matchesSingleFilter(filter: String) = when (filter) {
|
||||
name -> true
|
||||
"any" -> true
|
||||
"all" -> true
|
||||
resourceType.name -> true
|
||||
else -> improvementStats?.any { filter == it.key.name } == true
|
||||
}
|
||||
|
@ -235,8 +235,12 @@ These can be strung together with ", " between them, for example: `+2 Production
|
||||
|
||||
## 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.
|
||||
Allowed values:
|
||||
|
||||
- Resource name
|
||||
- `any`, `all`
|
||||
- Resource type: `Strategic`, `Luxury`, `Bonus`
|
||||
- Stat provided by the resource when improved (e.g. `Food`)
|
||||
|
||||
## stockpiledResource
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user