Traductions + fix v12
This commit is contained in:
@ -114,10 +114,10 @@ Hooks.once('init', () => {
|
||||
}
|
||||
|
||||
game.wfrp4e.apps.StatBlockParser.parseStatBlock = async function (statString, type = "npc") {
|
||||
console.log("PARSER FR DONE");
|
||||
return statParserFR(statString, type);
|
||||
}
|
||||
|
||||
console.log("WFRP4E-FR | Loading Babele translation module ...");
|
||||
loadScripts();
|
||||
|
||||
/*---------------------------------------------------------------------*/
|
||||
@ -307,7 +307,7 @@ Hooks.once('init', () => {
|
||||
|
||||
"npc_details": (details) => {
|
||||
//console.log("DETAILS: ", details);
|
||||
let newDetails = duplicate(details);
|
||||
let newDetails = foundry.utils.duplicate(details);
|
||||
if (details.species?.value)
|
||||
newDetails.species.value = game.i18n.localize(details.species.value);
|
||||
if (details.gender?.value)
|
||||
@ -483,7 +483,7 @@ Hooks.once('init', () => {
|
||||
if (career_fr?.system) {
|
||||
trait_en.name = career_fr.name || trait_en.name
|
||||
// DEBG: console.log(">>>>> Career ?", career_fr.name );
|
||||
trait_en.system = duplicate(career_fr.system);
|
||||
trait_en.system = foundry.utils.duplicate(career_fr.system);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -527,7 +527,7 @@ Hooks.once('init', () => {
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
newQF[i] = duplicate(list[i])
|
||||
newQF[i] = foundry.utils.duplicate(list[i])
|
||||
if (newQF[i].name == "Trap Blade") {
|
||||
newQF[i].name = "TrapBlade"; // Auto-patch, without space!
|
||||
//console.log("PATCHED", trim);
|
||||
|
Reference in New Issue
Block a user