Unciv/docs/Modders
Jeremy Woo 31931d3849
Added ConditionalWhenBetweenStatResource unique (#11212)
* Added ConditionalWhenBetweenStatResource unique

* Currently the ConditionalBetweenHappiness function only applies to Happiness. Wouldn't it be more better if it could also be extended to other stats and resources. 😊

* Resolved the issue with ConditionalWhenAboveStatResource, ConditionalWhenBelowStatResource, and their modified speed versions not functioning properly on city-level stats (food & production).

This new unique has been tested using the following examples:
    1. In GlobalUniques.json:
        - "[+12]% [Gold] [in all cities] <when between [1] to [100] [Gold]>",
        - "[+24]% [Gold] [in all cities] <when between [1] to [100] [Gold] (modified by game speed)>",
    2. In Buildings.json:
        - "[+12]% [Production] [in this city] <when between [1] to [5] [Production]>",
        - "[+12]% [Food] [in this city] <when between [1] to [5] [Food]>",

* Update uniques.md

* Correct english mistake of the new unique

* Refactor checkResourceOrStatAmount function

* Unified all related functions into one
2024-03-05 22:40:27 +02:00
..
Mod-file-structure Fix links in mod file structure - #11183 2024-02-26 22:53:28 +02:00
schemas changed requiredTech to revealedBy in tileResources json schema, added deposit amounts and improvedBy 2024-02-25 23:36:57 +02:00
.pages
Creating-a-custom-tileset.md
Creating-a-UI-skin.md Policy picker colors skinnable (#11050) 2024-02-01 23:24:43 +02:00
Images-and-Audio.md Wak wak waaaak :( 2024-02-13 12:09:17 +02:00
Making-a-new-Civilization.md
Mods.md
Scenarios.md
Type-checking.md json schema for tileResources 2024-02-25 23:27:23 +02:00
Unique-parameters.md Add additional cityFilters (#11047) 2024-01-30 20:06:36 +02:00
uniques.md Added ConditionalWhenBetweenStatResource unique (#11212) 2024-03-05 22:40:27 +02:00