Compare commits

...

4 Commits

Author SHA1 Message Date
bd74d179f0 v10 release 2022-09-12 21:12:25 +02:00
f175bd9f78 v10 release 2022-09-12 21:10:44 +02:00
96b49682c9 v10 release 2022-09-12 21:05:44 +02:00
a5b784ac03 Fix pur v9 2022-09-12 20:42:19 +02:00
21 changed files with 120 additions and 125 deletions

View File

@ -2,7 +2,7 @@
import statParserFR from "./modules/import-stat-2.js"; import statParserFR from "./modules/import-stat-2.js";
/************************************************************************************/ /************************************************************************************/
var compmod = "wfrp4e"; var compmod = "wfrp4e-core";
const vo_conditions = { const vo_conditions = {
"ablaze": "Ablaze", "ablaze": "Ablaze",
"bleeding": "Bleeding", "bleeding": "Bleeding",
@ -25,8 +25,8 @@ const vo_conditions = {
Hooks.once('init', () => { Hooks.once('init', () => {
// Check various settings in the installation // Check various settings in the installation
game.modules.forEach((module, name) => { game.modules.forEach((module, id) => {
if ( name == "wfrp4e-core" && module.active) { if ( id == "wfrp4e-core" && module.active) {
compmod = "wfrp4e-core"; compmod = "wfrp4e-core";
} }
} ); } );

View File

@ -17,7 +17,7 @@
"path": "data.careergroup.value", "path": "data.careergroup.value",
"converter": "career_careergroup" "converter": "career_careergroup"
}, },
"trappings": "data.trappings" "trappings": "system.trappings"
}, },
"entries": [ "entries": [
{ {

View File

@ -6,7 +6,7 @@
"converter": "bestiary_traits" "converter": "bestiary_traits"
}, },
"characteristics": { "characteristics": {
"path": "data.characteristics", "path": "system.characteristics",
"converter": "npc_characteristics" "converter": "npc_characteristics"
} }
}, },

View File

@ -2,22 +2,22 @@
"label": "Carrières", "label": "Carrières",
"mapping": { "mapping": {
"skills": { "skills": {
"path": "data.skills", "path": "system.skills",
"converter": "career_skills" "converter": "career_skills"
}, },
"talents": { "talents": {
"path": "data.talents", "path": "system.talents",
"converter": "career_talents" "converter": "career_talents"
}, },
"class": { "class": {
"path": "data.class.value", "path": "system.class.value",
"converter": "generic_localization" "converter": "generic_localization"
}, },
"careergroup": { "careergroup": {
"path": "data.careergroup.value", "path": "system.careergroup.value",
"converter": "career_careergroup" "converter": "career_careergroup"
}, },
"trappings": "data.trappings" "trappings": "system.trappings"
}, },
"entries": [ "entries": [
{ {

View File

@ -3,7 +3,7 @@
"mapping": { "mapping": {
"location": { "location": {
"converter": "generic_localization", "converter": "generic_localization",
"path": "data.location.value" "path": "system.location.value"
}, },
"effects": "effects" "effects": "effects"
}, },

View File

@ -1,12 +1,12 @@
{ {
"mapping": { "mapping": {
"durationValue": "data.duration.value", "durationValue": "system.duration.value",
"durationUnit": "data.duration.unit", "durationUnit": "system.duration.unit",
"contraction": "data.contraction.value", "contraction": "system.contraction.value",
"incubationValue": "data.incubation.value", "incubationValue": "system.incubation.value",
"incubationUnit": "data.incubation.unit", "incubationUnit": "system.incubation.unit",
"symptoms": "data.symptoms.value", "symptoms": "system.symptoms.value",
"permanent": "data.permanent.value", "permanent": "system.permanent.value",
"effects": "effects" "effects": "effects"
}, },
"label": "Maladies", "label": "Maladies",

View File

@ -1,9 +1,9 @@
{ {
"label": "Blessures", "label": "Blessures",
"mapping": { "mapping": {
"penalty": "data.penalty.value", "penalty": "system.penalty.value",
"location": { "location": {
"path": "data.location.value", "path": "system.location.value",
"converter": "generic_localization" "converter": "generic_localization"
}, },
"effects": "effects" "effects": "effects"

View File

@ -2,19 +2,19 @@
"label": "Prières", "label": "Prières",
"mapping": { "mapping": {
"pduration": { "pduration": {
"path": "data.duration.value", "path": "system.duration.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"prange": { "prange": {
"path": "data.range.value", "path": "system.range.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"ptarget": { "ptarget": {
"path": "data.target.value", "path": "system.target.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"pdamage": { "pdamage": {
"path": "data.damage.value", "path": "system.damage.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"effects": "effects" "effects": "effects"

View File

@ -2,19 +2,19 @@
"label": "Sorts", "label": "Sorts",
"mapping": { "mapping": {
"sduration": { "sduration": {
"path": "data.duration.value", "path": "system.duration.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"srange": { "srange": {
"path": "data.range.value", "path": "system.range.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"starget": { "starget": {
"path": "data.target.value", "path": "system.target.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"sdamage": { "sdamage": {
"path": "data.damage.value", "path": "system.damage.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"effects": "effects" "effects": "effects"

View File

@ -1,7 +1,7 @@
{ {
"label": "Talents", "label": "Talents",
"mapping": { "mapping": {
"tests": "data.tests.value", "tests": "system.tests.value",
"effects": "effects" "effects": "effects"
}, },
"entries": [ "entries": [

View File

@ -1,13 +1,13 @@
{ {
"label": "Equipement", "label": "Equipement",
"mapping": { "mapping": {
"special": "data.special.value", "special": "system.special.value",
"qualities": { "qualities": {
"path": "data.qualities.value", "path": "system.qualities.value",
"converter": "trapping_qualities_flaws" "converter": "trapping_qualities_flaws"
}, },
"flaws": { "flaws": {
"path": "data.flaws.value", "path": "system.flaws.value",
"converter": "trapping_qualities_flaws" "converter": "trapping_qualities_flaws"
}, },
"effects": "effects" "effects": "effects"

View File

@ -2,19 +2,19 @@
"label": "Items (Death on the Reik)", "label": "Items (Death on the Reik)",
"mapping": { "mapping": {
"sduration": { "sduration": {
"path": "data.duration.value", "path": "system.duration.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"srange": { "srange": {
"path": "data.range.value", "path": "system.range.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"starget": { "starget": {
"path": "data.target.value", "path": "system.target.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"sdamage": { "sdamage": {
"path": "data.damage.value", "path": "system.damage.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
} }
}, },

View File

@ -2,22 +2,22 @@
"label": "Items Ennemis Intérieur", "label": "Items Ennemis Intérieur",
"mapping": { "mapping": {
"skills": { "skills": {
"path": "data.skills", "path": "system.skills",
"converter": "career_skills" "converter": "career_skills"
}, },
"talents": { "talents": {
"path": "data.talents", "path": "system.talents",
"converter": "career_talents" "converter": "career_talents"
}, },
"class": { "class": {
"path": "data.class.value", "path": "system.class.value",
"converter": "generic_localization" "converter": "generic_localization"
}, },
"careergroup": { "careergroup": {
"path": "data.careergroup.value", "path": "system.careergroup.value",
"converter": "career_careergroup" "converter": "career_careergroup"
}, },
"trappings": "data.trappings" "trappings": "system.trappings"
}, },
"entries": [ "entries": [
{ {

View File

@ -2,19 +2,19 @@
"label": "Sorts Ennemi Intérieur", "label": "Sorts Ennemi Intérieur",
"mapping": { "mapping": {
"sduration": { "sduration": {
"path": "data.duration.value", "path": "system.duration.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"srange": { "srange": {
"path": "data.range.value", "path": "system.range.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"starget": { "starget": {
"path": "data.target.value", "path": "system.target.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"sdamage": { "sdamage": {
"path": "data.damage.value", "path": "system.damage.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"effets": "effects" "effets": "effects"

View File

@ -2,11 +2,11 @@
"label": "Mutations Supplémentaires", "label": "Mutations Supplémentaires",
"mappings": { "mappings": {
"modifier": { "modifier": {
"path": "data.modifier.value", "path": "system.modifier.value",
"converter": "mutations_modifier" "converter": "mutations_modifier"
}, },
"mutationType": { "mutationType": {
"path": "data.mutationType.value", "path": "system.mutationType.value",
"converter": "generic_localization" "converter": "generic_localization"
} }
}, },

View File

@ -2,22 +2,22 @@
"label": "Items Rough Nights & Hard Days", "label": "Items Rough Nights & Hard Days",
"mapping": { "mapping": {
"sduration": { "sduration": {
"path": "data.duration.value", "path": "system.duration.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"srange": { "srange": {
"path": "data.range.value", "path": "system.range.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"starget": { "starget": {
"path": "data.target.value", "path": "system.target.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"sdamage": { "sdamage": {
"path": "data.damage.value", "path": "system.damage.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"tests": "data.tests.value" "tests": "system.tests.value"
}, },
"entries": [ "entries": [
{ {

View File

@ -1,35 +1,35 @@
{ {
"label": "Items Starter Set", "label": "Items Starter Set",
"mapping": { "mapping": {
"gmdescription": "data.gmdescription.value", "gmdescription": "system.gmdescription.value",
"duration": "data.duration.value", "duration": "system.duration.value",
"contraction": "data.contraction.value", "contraction": "system.contraction.value",
"incubation": "data.incubation.value", "incubation": "system.incubation.value",
"symptoms": "data.symptoms.value", "symptoms": "system.symptoms.value",
"permanent": "data.permanent.value", "permanent": "system.permanent.value",
"special": "data.special.value", "special": "system.special.value",
"qualities": { "qualities": {
"path": "data.qualities.value", "path": "system.qualities.value",
"converter": "trapping_qualities_flaws" "converter": "trapping_qualities_flaws"
}, },
"flaws": { "flaws": {
"path": "data.flaws.value", "path": "system.flaws.value",
"converter": "trapping_qualities_flaws" "converter": "trapping_qualities_flaws"
}, },
"sduration": { "sduration": {
"path": "data.duration.value", "path": "system.duration.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"srange": { "srange": {
"path": "data.range.value", "path": "system.range.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"starget": { "starget": {
"path": "data.target.value", "path": "system.target.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"sdamage": { "sdamage": {
"path": "data.damage.value", "path": "system.damage.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
} }
}, },

View File

@ -2,18 +2,18 @@
"label": "UG - Carrières", "label": "UG - Carrières",
"mapping": { "mapping": {
"skills": { "skills": {
"path": "data.skills", "path": "system.skills",
"converter": "career_skills" "converter": "career_skills"
}, },
"talents": { "talents": {
"path": "data.talents", "path": "system.talents",
"converter": "career_talents" "converter": "career_talents"
}, },
"class": { "class": {
"path": "data.class.value", "path": "system.class.value",
"converter": "generic_localization" "converter": "generic_localization"
}, },
"careergroup": "data.careergroup.value", "careergroup": "system.careergroup.value",
"trappings": "data.trappings" "trappings": "data.trappings"
}, },
"entries": [ "entries": [

View File

@ -6,7 +6,7 @@
"converter": "bestiary_traits" "converter": "bestiary_traits"
}, },
"characteristics": { "characteristics": {
"path": "data.characteristics", "path": "system.characteristics",
"converter": "npc_characteristics" "converter": "npc_characteristics"
} }
}, },

View File

@ -2,19 +2,19 @@
"label": "UG - Sorts", "label": "UG - Sorts",
"mapping": { "mapping": {
"sduration": { "sduration": {
"path": "data.duration.value", "path": "system.duration.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"srange": { "srange": {
"path": "data.range.value", "path": "system.range.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"starget": { "starget": {
"path": "data.target.value", "path": "system.target.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
}, },
"sdamage": { "sdamage": {
"path": "data.damage.value", "path": "system.damage.value",
"converter": "spells_duration_range_target_damage" "converter": "spells_duration_range_target_damage"
} }
}, },

View File

@ -1,31 +1,28 @@
{ {
"id": "wh4-fr-translation",
"name": "wh4-fr-translation",
"title": "WFRP4e - Core Module en français.", "title": "WFRP4e - Core Module en français.",
"description": "Traduction Française pour Warhammer v4.", "description": "Traduction Française pour Warhammer v4.",
"authors": [ {"name":"LeRatierBretonnien" }], "authors": [
{
"name": "LeRatierBretonnien",
"flags": {}
}
],
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr", "url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
"flags": {}, "version": "6.2.1",
"version": "6.1.7",
"compatibility": {
"minimum": "9.280",
"verified": "10.285",
"maximum": "10"
},
"minimumCoreVersion": "9",
"compatibleCoreVersion": "9",
"scripts": [],
"esmodules": [ "esmodules": [
"babele-register.js", "babele-register.js",
"addon-register.js", "addon-register.js",
"modules/import-stat-2.js" "modules/import-stat-2.js"
], ],
"styles": ["patch-styles.css"], "styles": [
"patch-styles.css"
],
"languages": [ "languages": [
{ {
"lang": "fr", "lang": "fr",
"name": "Français", "name": "Français",
"path": "fr.json" "path": "fr.json",
"flags": {}
} }
], ],
"packs": [ "packs": [
@ -35,8 +32,8 @@
"name": "plats-dauberges", "name": "plats-dauberges",
"path": "packs/plats-dauberges.db", "path": "packs/plats-dauberges.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Dons de Rhya", "label": "Dons de Rhya",
@ -44,8 +41,8 @@
"name": "dons-de-rhya", "name": "dons-de-rhya",
"path": "packs/dons-de-rhya.db", "path": "packs/dons-de-rhya.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Carrières FR", "label": "Carrières FR",
@ -53,8 +50,8 @@
"name": "carriere-fr", "name": "carriere-fr",
"path": "packs/carriere-fr.db", "path": "packs/carriere-fr.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Sorts FR", "label": "Sorts FR",
@ -62,8 +59,8 @@
"name": "sort-fr", "name": "sort-fr",
"path": "packs/sort-fr.db", "path": "packs/sort-fr.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Aides de Jeu FR", "label": "Aides de Jeu FR",
@ -71,8 +68,8 @@
"name": "aides-de-jeu-fr", "name": "aides-de-jeu-fr",
"path": "packs/aides-de-jeu-fr.db", "path": "packs/aides-de-jeu-fr.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Potions : Drogues et Sédatifs", "label": "Potions : Drogues et Sédatifs",
@ -80,8 +77,8 @@
"name": "drogues-and-sedatifs", "name": "drogues-and-sedatifs",
"path": "packs/drogues-and-sedatifs.db", "path": "packs/drogues-and-sedatifs.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Potions : Pansements et Cataplasmes", "label": "Potions : Pansements et Cataplasmes",
@ -89,8 +86,8 @@
"name": "pansements-and-cataplasmes", "name": "pansements-and-cataplasmes",
"path": "packs/pansements-and-cataplasmes.db", "path": "packs/pansements-and-cataplasmes.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Potions : Poisons et Toxiques", "label": "Potions : Poisons et Toxiques",
@ -98,8 +95,8 @@
"name": "poisons-and-toxiques", "name": "poisons-and-toxiques",
"path": "packs/poisons-and-toxiques.db", "path": "packs/poisons-and-toxiques.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Potions : Potions et Décoctions", "label": "Potions : Potions et Décoctions",
@ -107,8 +104,8 @@
"name": "potions-and-decoctions", "name": "potions-and-decoctions",
"path": "packs/potions-and-decoctions.db", "path": "packs/potions-and-decoctions.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Potions : Antidotes et Remèdes", "label": "Potions : Antidotes et Remèdes",
@ -116,8 +113,8 @@
"name": "antidotes-and-remedes", "name": "antidotes-and-remedes",
"path": "packs/antidotes-and-remedes.db", "path": "packs/antidotes-and-remedes.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Tables des Traductions", "label": "Tables des Traductions",
@ -125,8 +122,8 @@
"name": "tables-des-traductions", "name": "tables-des-traductions",
"path": "packs/tables-des-traductions.db", "path": "packs/tables-des-traductions.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "Wwh4H4-fr-translation", "private": false,
"private": false "flags": {}
}, },
{ {
"label": "Apothicarium", "label": "Apothicarium",
@ -134,27 +131,25 @@
"name": "apothicarium", "name": "apothicarium",
"path": "packs/apothicarium.db", "path": "packs/apothicarium.db",
"system": "wfrp4e", "system": "wfrp4e",
"module": "wh4-fr-translation", "private": false,
"private": false "flags": {}
} }
], ],
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.1.zip",
"id": "wh4-fr-translation",
"compatibility": {
"minimum": "10",
"verified": "10.285"
},
"relationships": { "relationships": {
"systems": [{ "systems": [{
"id": "wfrp4e", "id": "wfrp4e",
"type": "system", "type": "system"
"compatibility": {
"verified": "6.1.1"
}
}], }],
"requires": [{ "requires": [{
"id": "babele", "id": "babele",
"type": "module" "type": "module"
}] }]
}, }
"socket": false,
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v4/module.json",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.1.7.zip",
"protected": false,
"coreTranslation": false,
"library": false
} }