diff --git a/module/compendiums/swade-core-rules.swade-bestiary.json b/module/compendiums/swade-core-rules.swade-bestiary.json index beb7470..7dd0486 100644 --- a/module/compendiums/swade-core-rules.swade-bestiary.json +++ b/module/compendiums/swade-core-rules.swade-bestiary.json @@ -1,12 +1,6 @@ { "label": "SWADE Bestiaire", "entries": [ - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "", - "items": [] - }, { "id": "Alligator/Crocodile", "name": "Alligator/Crocodile", diff --git a/module/compendiums/swade-core-rules.swade-edges.json b/module/compendiums/swade-core-rules.swade-edges.json index 5b8c610..29c8696 100644 --- a/module/compendiums/swade-core-rules.swade-edges.json +++ b/module/compendiums/swade-core-rules.swade-edges.json @@ -1,51 +1,9 @@ { "label": "SWADE Atouts", + "mapping": { + "description": "data.description" + }, "entries": [ - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, { "id": "Ace", "name": "Ace", diff --git a/module/compendiums/swade-core-rules.swade-equipment.json b/module/compendiums/swade-core-rules.swade-equipment.json index c615f9e..cd78cf6 100644 --- a/module/compendiums/swade-core-rules.swade-equipment.json +++ b/module/compendiums/swade-core-rules.swade-equipment.json @@ -1,226 +1,14 @@ { "label": "SWADE Équipement", + "mapping": { + "description": "data.description" + }, "entries": [ { "id": "\"Bug\" (Micro Transmitter)", "name": "\"Bug\" (Micro Transmitter)", "description": "
\n

12 hours of continuous use.

\n
" }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, { "id": "120mm Tank Gun (AP Rounds)", "name": "120mm Tank Gun (AP Rounds)", diff --git a/module/compendiums/swade-core-rules.swade-hindrances.json b/module/compendiums/swade-core-rules.swade-hindrances.json index 4081197..64fad1b 100644 --- a/module/compendiums/swade-core-rules.swade-hindrances.json +++ b/module/compendiums/swade-core-rules.swade-hindrances.json @@ -1,11 +1,9 @@ { "label": "SWADE Handicaps", + "mapping": { + "description": "data.description" + }, "entries": [ - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, { "id": "All Thumbs", "name": "All Thumbs", diff --git a/module/compendiums/swade-core-rules.swade-powers.json b/module/compendiums/swade-core-rules.swade-powers.json index 71de96c..a1a3957 100644 --- a/module/compendiums/swade-core-rules.swade-powers.json +++ b/module/compendiums/swade-core-rules.swade-powers.json @@ -1,11 +1,9 @@ { "label": "SWADE Pouvoirs", + "mapping": { + "description": "data.description" + }, "entries": [ - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, { "id": "Arcane Protection", "name": "Arcane Protection", diff --git a/module/compendiums/swade-core-rules.swade-rules.json b/module/compendiums/swade-core-rules.swade-rules.json index c50bb66..6b4f13e 100644 --- a/module/compendiums/swade-core-rules.swade-rules.json +++ b/module/compendiums/swade-core-rules.swade-rules.json @@ -1,121 +1,6 @@ { "label": "SWADE Règles", "entries": [ - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, { "id": "Action Cards (Initiative)", "name": "Action Cards (Initiative)", diff --git a/module/compendiums/swade-core-rules.swade-skills.json b/module/compendiums/swade-core-rules.swade-skills.json index dc01cc3..9c10dba 100644 --- a/module/compendiums/swade-core-rules.swade-skills.json +++ b/module/compendiums/swade-core-rules.swade-skills.json @@ -1,11 +1,9 @@ { "label": "SWADE Compétences", + "mapping": { + "description_full": "data.description" + }, "entries": [ - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "description": "" - }, { "id": "Academics", "name":"Éducation", diff --git a/module/compendiums/swade-core-rules.swade-vehicles.json b/module/compendiums/swade-core-rules.swade-vehicles.json index 613bd56..3b701d5 100644 --- a/module/compendiums/swade-core-rules.swade-vehicles.json +++ b/module/compendiums/swade-core-rules.swade-vehicles.json @@ -1,56 +1,6 @@ { "label": "SWADE Véhicules", "entries": [ - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, - { - "id": "#[CF_tempEntity]", - "name": "#[CF_tempEntity]", - "items": [] - }, { "id": "AH-64 Apache", "name": "AH-64 Apache", diff --git a/module/module.json b/module/module.json index bed4cbb..53ad841 100644 --- a/module/module.json +++ b/module/module.json @@ -27,7 +27,10 @@ "scripts": [], "styles": ["swade-fr.css"], "packs": [], - + "esmodules": [ + "modules/swade-fr-init.js" + ], + "languages": [ { "lang": "fr", diff --git a/module/modules/swade-fr-init.js b/module/modules/swade-fr-init.js new file mode 100644 index 0000000..ff8cce3 --- /dev/null +++ b/module/modules/swade-fr-init.js @@ -0,0 +1,14 @@ + +/************************************************************************************/ +Hooks.once('init', () => { + if(typeof Babele !== 'undefined') { + + console.log("BABELE LOADED !!!"); + Babele.get().register({ + module: 'swade-fr', + lang: 'fr', + dir: 'compendiums' + }); + } + +}); \ No newline at end of file