diff --git a/compendium/wfrp4e-soc.items.json b/compendium/wfrp4e-soc.items.json new file mode 100644 index 0000000..2d1479c --- /dev/null +++ b/compendium/wfrp4e-soc.items.json @@ -0,0 +1,81 @@ +{ + "label": "Items (Sea of Claws)", + "mapping": { + "description": "system.description.value", + "trappings": "system.trappings", + "class": { + "path": "system.class.value", + "converter": "generic_localization" + }, + "skills": { + "path": "system.skills", + "converter": "career_skills" + }, + "careergroup": { + "path": "system.careergroup.value", + "converter": "career_careergroup" + }, + "talents": { + "path": "system.talents", + "converter": "career_talents" + }, + "pduration": { + "path": "system.duration.value", + "converter": "spells_duration_range_target_damage" + }, + "prange": { + "path": "system.range.value", + "converter": "spells_duration_range_target_damage" + }, + "ptarget": { + "path": "system.target.value", + "converter": "spells_duration_range_target_damage" + }, + "pdamage": { + "path": "system.damage.value", + "converter": "spells_duration_range_target_damage" + }, + "test": { + "path": "system.test", + "converter": "role_skills" + }, + "tests": "system.tests.value", + "sduration": { + "path": "system.duration.value", + "converter": "spells_duration_range_target_damage" + }, + "srange": { + "path": "system.range.value", + "converter": "spells_duration_range_target_damage" + }, + "starget": { + "path": "system.target.value", + "converter": "spells_duration_range_target_damage" + }, + "sdamage": { + "path": "system.damage.value", + "converter": "spells_duration_range_target_damage" + }, + "penalty": "system.penalty.value", + "location": { + "path": "system.location.value", + "converter": "generic_localization" + }, + "durationValue": "system.duration.value", + "durationUnit": "system.duration.unit", + "contraction": "system.contraction.value", + "incubationValue": "system.incubation.value", + "incubationUnit": "system.incubation.unit", + "symptoms": "system.symptoms.value", + "permanent": "system.permanent.value", + "special": "system.special.value", + "qualities": { + "path": "system.qualities.value", + "converter": "trapping_qualities_flaws" + }, + "flaws": { + "path": "system.flaws.value", + "converter": "trapping_qualities_flaws" + } + } +} diff --git a/fr.json b/fr.json index c2905aa..3103344 100644 --- a/fr.json +++ b/fr.json @@ -193,6 +193,8 @@ "SETTINGS.TABLE_oops":"Maladresse!", "SETTINGS.TABLE_species":"Espèces", "SETTINGS.TABLE_wrath":"Colère des Dieux", + "SETTINGS.TABLE_port-stay-events":"Port Stay Events", + "SETTINGS.TABLE_shipboard-events":"Shipboard Events", "SETTINGS.useWoMOvercast":"Utiliser les règles de sur-incantation de Winods of Magic", "SETTINGS.useWoMOvercastHint":"Utiliser les règles de sur-incantation proposées par le supplément Winds of Magic, cf page 23.", "SETTINGS.ChannellingIngredients":"Ingedients de Focalisation", diff --git a/modules/addon-register.js b/modules/addon-register.js index d4e7638..e8f61df 100644 --- a/modules/addon-register.js +++ b/modules/addon-register.js @@ -400,7 +400,7 @@ Hooks.on('ready', () => { } game.wfrp4e.config.difficultyLabels = { - "veasy": "Trés Facile (+60)", + "veasy": "Très Facile (+60)", "easy": "Facile (+40)", "banal": "Banal (+30)", "average": "Accessible (+20)", diff --git a/modules/babele-register.js b/modules/babele-register.js index 75ace65..c87d325 100644 --- a/modules/babele-register.js +++ b/modules/babele-register.js @@ -270,6 +270,11 @@ Hooks.once('init', () => { } return skills_list }, + "role_skills": (skills) => { + let skills_list = skills.split(','); + let skillsFR = game.babele.converters.career_skills(skills_list); + return skillsFR.join(', ') + }, "process_effects": (effectsData, translations, data, tc, tc_translations) => { //console.log("Effects :", effectsData, translations, data, tc, tc_translations) for (let e of effectsData) { @@ -510,6 +515,17 @@ Hooks.once('init', () => { break; } } + } 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, trait_en, true); + if (role_fr?.system) { + trait_en.name = role_fr.name || trait_en.name + // DEBG: console.log(">>>>> Role ?", role_fr.name ); + trait_en.system = foundry.utils.duplicate(role_fr.system); + break; + } + } } else if (trait_en.type == "trapping" || trait_en.type == "weapon" || trait_en.type == "armour" || trait_en.type == "container" || trait_en.type == "money") { let validCompendiums = game.wfrp4e.tags.getPacksWithTag(["trapping"], ["weapon", "armour", "container", "money"]) for (let compData of validCompendiums) {