Fix natation/swim

This commit is contained in:
2025-07-25 10:51:41 +02:00
parent 5801a5270f
commit 7afcadfb6f
32 changed files with 94 additions and 91 deletions

View File

@@ -10,6 +10,7 @@ export class WH4FRPatchConfig {
for( let compName of skillList) {
let special = "";
let newName = compName;
let baseName = compName
if ( compName.includes("(") && compName.includes(")") ) { // Then process specific skills name with (xxxx) inside
let re = /(.*) +\((.*)\)/i;
let res = re.exec( compName );
@@ -20,6 +21,9 @@ export class WH4FRPatchConfig {
if (compNameFR.name != compName) { // Translation OK
newName = compNameFR.name + special;
}
if ( !newName || newName == "" || newName == undefined ) { // If no translation, keep the original name
newName = baseName; // If no translation, keep the original name
}
newList.push(newName);
}
return newList;