Fix problems with stats from tiles and improvements (#10980)

* Fix problems with stats from tiles and improvements

* Hold on, we can get the ruleset from the tile. And I was about to complain about that

* Update docs

* Funky null fix

* if else chain doesn't make sense for percent changes on second thought

* Incorporate suggestions

* Use getUnpillagedImprovement functions in matchesFilter

* We don't actually need the whole improvement here, just the name

* Move Golden Age to after all other stats

* Simplify percent stat adds
This commit is contained in:
SeventhM
2024-01-24 13:41:52 -08:00
committed by GitHub
parent 8d7e1a2a42
commit 4a72213cde
4 changed files with 89 additions and 138 deletions

View File

@ -134,7 +134,7 @@ For filtering a specific improvement.
Allowed values are:
- improvement name (Note that "Road" and "Railroad" _do_ work as improvementFilters, but not as tileFilters at the moment.)
- improvement name
- `All`
- `Great Improvements`, `Great`
- `All Road` - for Roads & Railroads