Convert items from Sea of Claws and translate skills for vehicle roles #104

Merged
uberwald merged 7 commits from :soc into v10 2024-10-11 20:09:51 +02:00
Showing only changes of commit 1bb7d0b248 - Show all commits

View File

@ -518,7 +518,7 @@ Hooks.once('init', () => {
} else if (trait_en.type == "vehicleRole") { } else if (trait_en.type == "vehicleRole") {
let validCompendiums = game.wfrp4e.tags.getPacksWithTag("vehicleRole") let validCompendiums = game.wfrp4e.tags.getPacksWithTag("vehicleRole")
for (let compData of validCompendiums) { 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) { if (role_fr?.system) {
trait_en.name = role_fr.name || trait_en.name trait_en.name = role_fr.name || trait_en.name
// DEBG: console.log(">>>>> Role ?", role_fr.name ); // DEBG: console.log(">>>>> Role ?", role_fr.name );