mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-05 15:59:50 +07:00
Adds conditionals to most of the uniques currently in the enum (#5270)
* Moved uniques to their own folder * Added support for conditionals to most of the uniques in the current enum * Deprecation > removal, of course * Fixed tests & added `.removeConditionals` before checking for placeholders
This commit is contained in:
@ -110,7 +110,7 @@ class TranslationTests {
|
||||
fun allPlaceholderKeysMatchEntry() {
|
||||
var allPlaceholderKeysMatchEntry = true
|
||||
for (key in translations.keys) {
|
||||
if (!key.contains('[')) continue
|
||||
if (!key.contains('[') || key.contains('<')) continue
|
||||
val translationEntry = translations[key]!!.entry
|
||||
val keyFromEntry = translationEntry.replace(squareBraceRegex, "[]")
|
||||
if (key != keyFromEntry) {
|
||||
|
Reference in New Issue
Block a user