Trigger uniques by sacrificing units with conditional (#6157)

* Triggered uniques currently come from researching techs, adopting policies, and building buildings.
This adds a third way of triggering uniques, by attaching them to units with a "by consuming this unit" conditional, which will be added as a possible unit action.
So for example, "[amount] Free Technologies <by consuming this unit>", "Reveals the entire map <by consuming this unit>" etc.

* Added a new uniquetype for triggerable uniques, to make them separate from regular global uniques, so that triggerable uniques can become unit uniques when necessary

* And added translations so the tests will pass
This commit is contained in:
Yair Morgenstern
2022-02-19 19:38:39 +02:00
committed by GitHub
parent a8be359ed2
commit 6d48f99206
7 changed files with 49 additions and 20 deletions

View File

@ -65,7 +65,7 @@ class TranslationTests {
val key = if (entry.contains('[')) entry.replace(squareBraceRegex, "[]") else entry
if (!translations.containsKey(key)) {
allStringsHaveTranslation = false
println(entry)
println("$entry not translated!")
}
}
return allStringsHaveTranslation