mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 08:21:36 +07:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user