COrrection sur Natation - again

This commit is contained in:
2025-10-13 20:59:50 +02:00
parent 94ca8cb6ea
commit 4ee45273b3
32 changed files with 96 additions and 93 deletions

View File

@@ -8,6 +8,8 @@ export class WH4FRPatchConfig {
let newList = [];
for( let compName of skillList) {
// Trim compName
compName = compName.trim();
let special = "";
let newName = compName;
let baseName = compName
@@ -21,7 +23,8 @@ 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
// DEBUG console.log("Translating skill ", compName, baseName, " to ", newName, special);
if ( !newName || newName == "" || newName === undefined || newName === "undefined" ) { // If no translation, keep the original name
newName = baseName; // If no translation, keep the original name
}
newList.push(newName);