mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 15:27:27 +07:00
4fb4722e3a
* Arbitrary conditionals can become timed conditionals! triggerCivwideUniques is activated in 3 situations: - Tech complete - Policy adopted - Building complete So for each of the unique containers for these I added a catch saying 'if this unique is a temporary unique then don't save it yourself This has been lying around in todos for a while and generalizes one of the nasty hardcoded messes that I hate about Civ V. Why would you introduce ONE timed effect in the whole game?! You can use them all the time like Humankind or never use them like Civ IV, but why have just one whyyy One more thing in this PR, that needed to be solved by the by, is allowing parameters to have a '2' on the end so we can autoreplace multiple parameters of the same type. Using a regex is slightly more inefficient, but since this is A. only used once per UniqueType.kt, and B. allows us to have as many 'amount's as we want which is important if we have a lot of conditionals, I feel this is justified. * Fixed comments from PR |
||
---|---|---|
.. | ||
ExtraImages | ||
jsons | ||
sounds | ||
Atlases.json | ||
Construction.atlas | ||
Construction.png | ||
Flags.atlas | ||
Flags.png | ||
game.atlas | ||
game.png | ||
Skin.atlas | ||
Skin.json | ||
Skin.png | ||
Tech.atlas | ||
Tech.png |