Fix natation/swim
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user