Unciv/android
Yair Morgenstern 4fb4722e3a
Arbitrary conditionals can become timed conditionals! (#6134)
* 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
2022-02-12 19:03:11 +02:00
..
assets Arbitrary conditionals can become timed conditionals! (#6134) 2022-02-12 19:03:11 +02:00
Images Merged all arrow images into one 2022-02-09 16:59:05 +02:00
Images.Construction updated Caravel.png, resolves #5317 (#6069) 2022-01-29 18:36:05 +02:00
Images.Flags/FlagIcons
Images.Skin
Images.Tech/TechIcons Added an icon for the telegraph tech (#5765) 2021-12-06 11:53:29 +02:00
ImagesToNotAddToGame Show arrows on map for unit actions: Asset files. (#5825) 2021-12-25 22:29:19 +02:00
res
src/com/unciv/app Fixed assumption that the current game is in the list of games gathered from preview files (#5981) 2022-01-16 18:42:45 +02:00
AndroidManifest.xml
build.gradle.kts Gradle build tools upgrade (#6085) 2022-01-31 15:05:42 +02:00
ic_launcher-web.png
proguard-rules.pro
project.properties