Convert items from Sea of Claws and translate skills for vehicle roles #104
@ -518,7 +518,7 @@ Hooks.once('init', () => {
|
||||
} else if (trait_en.type == "vehicleRole") {
|
||||
let validCompendiums = game.wfrp4e.tags.getPacksWithTag("vehicleRole")
|
||||
for (let compData of validCompendiums) {
|
||||
let role_fr = game.babele.translate(compData.metadata.id, { name: name_en }, true);
|
||||
let role_fr = game.babele.translate(compData.metadata.id, trait_en, true);
|
||||
if (role_fr?.system) {
|
||||
trait_en.name = role_fr.name || trait_en.name
|
||||
// DEBG: console.log(">>>>> Role ?", role_fr.name );
|
||||
|
Loading…
Reference in New Issue
Block a user