From 3a5a3e9cc56528b411a31191e0249caead387dc4 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 25 Jun 2020 23:18:14 +0200 Subject: [PATCH] Ajout template --- RdD.geany | 25 +++++++++------------ module/rdd-utility.js | 2 ++ system.json | 4 ++-- template.json | 4 ++-- templates/actor-sheet.html | 6 ++--- templates/item-conteneur-sheet.html | 35 +++++++++++++++++++++++++++++ templates/item-munition-sheet.html | 31 +++++++++++++++++++++++++ templates/item-objet-sheet.html | 35 +++++++++++++++++++++++++++++ 8 files changed, 121 insertions(+), 21 deletions(-) create mode 100644 templates/item-conteneur-sheet.html create mode 100644 templates/item-munition-sheet.html create mode 100644 templates/item-objet-sheet.html diff --git a/RdD.geany b/RdD.geany index c42738e4..900aa908 100644 --- a/RdD.geany +++ b/RdD.geany @@ -27,20 +27,17 @@ long_line_behaviour=1 long_line_column=72 [files] -current_page=4 -FILE_NAME_0=4422;JSON;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplate.json;0;2 -FILE_NAME_1=2644;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Factor-sheet.js;0;2 -FILE_NAME_2=19593;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Factor-sheet.html;0;2 -FILE_NAME_3=1360;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Frdd-roll-dialog.js;0;2 -FILE_NAME_4=13418;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Factor.js;0;2 -FILE_NAME_5=416;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fdialog-roll-carac.html;0;2 -FILE_NAME_6=20945;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Frdd-utility.js;0;2 -FILE_NAME_7=135;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Frdd-main.js;0;2 -FILE_NAME_8=1639;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fitem-competence-sheet.html;0;2 -FILE_NAME_9=2486;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fitem-arme-sheet.html;0;2 -FILE_NAME_10=0;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Ftoto_init_hook.js;0;2 -FILE_NAME_11=1739;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2FWFRP-4th-Edition-FoundryVTT_SLADECRAVEN%2Fscripts%2Factor%2Factor-wfrp4e.js;0;2 -FILE_NAME_12=23103;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2FWFRP-4th-Edition-FoundryVTT_SLADECRAVEN%2Fscripts%2Futility-wfrp4e.js;0;2 +current_page=0 +FILE_NAME_0=8694;JSON;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplate.json;0;2 +FILE_NAME_1=3682;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Factor-sheet.js;0;2 +FILE_NAME_2=17891;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Factor-sheet.html;0;2 +FILE_NAME_3=13913;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Factor.js;0;2 +FILE_NAME_4=416;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fdialog-roll-carac.html;0;2 +FILE_NAME_5=20216;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Frdd-utility.js;0;2 +FILE_NAME_6=135;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Frdd-main.js;0;2 +FILE_NAME_7=1639;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fitem-competence-sheet.html;0;2 +FILE_NAME_8=487;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fitem-armure-sheet.html;0;2 +FILE_NAME_9=1122;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Fitem-sheet.js;0;2 [VTE] last_dir=/home/sigmar diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 80d42107..6d26313c 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -78,6 +78,8 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/item-competence-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/item-arme-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/item-armure-sheet.html', + 'systems/foundryvtt-reve-de-dragon/templates/item-objet-sheet.html', + 'systems/foundryvtt-reve-de-dragon/templates/item-conteneur-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/competence-categorie.html', 'systems/foundryvtt-reve-de-dragon/templates/competence-carac-defaut.html', 'systems/foundryvtt-reve-de-dragon/templates/competence-base.html', diff --git a/system.json b/system.json index 59da0d68..f0c036e8 100644 --- a/system.json +++ b/system.json @@ -2,10 +2,10 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "L'implémentation de Rêve de Dragon pour FoundryVTT", - "version": "0.7.5", + "version": "0.7.6", "minimumCoreVersion": "0.6.0", "compatibleCoreVersion": "0.6.2", - "templateVersion": 14, + "templateVersion": 15, "author": "LeRatierBretonnien", "esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ], "styles": ["styles/simple.css"], diff --git a/template.json b/template.json index b7671f6a..2fd06325 100644 --- a/template.json +++ b/template.json @@ -284,7 +284,7 @@ } }, "Item": { - "types": ["objet", "arme", "armure", "competence", "sort", "herbe", "ingredient", "livre", "potion", "munition"], + "types": ["objet", "arme", "armure", "conteneur", "competence", "sort", "herbe", "ingredient", "livre", "potion", "munition"], "objet": { "description": "", "quantite": 1, @@ -292,7 +292,6 @@ "equipe": false, "resistance": 0, "qualite": 0, - "equipe": false, "cout": 0 }, "conteneur": { @@ -323,6 +322,7 @@ "quantite": 1, "encombrement": 0, "equipe": false, + "qualite": 0, "cout": 0 }, "armure": { diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 856f773e..537ee5af 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -273,7 +273,7 @@
{{#each data.blessures.legeres.liste as |bless key|}}
  • - + {{#if bless.active}}{{else}}{{/if}} Premiers soins - Soins complets - Jours - @@ -285,7 +285,7 @@
    {{#each data.blessures.graves.liste as |bless key|}}
  • - Premiers soins : {{bless.premiers_soins}} - Soins complets : {{bless.soins_complets}} - Nombre de jours : {{bless.jours}} - Localisation : {{bless.localisation}} + {{#if bless.active}}{{else}}{{/if}} Premiers soins : {{bless.premiers_soins}} - Soins complets : {{bless.soins_complets}} - Nombre de jours : {{bless.jours}} - Localisation : {{bless.localisation}}
  • {{/each}}
    @@ -293,7 +293,7 @@
    {{#each data.blessures.critiques.liste as |bless key|}}
  • - Premiers soins : {{bless.premiers_soins}} - Soins complets : {{bless.soins_complets}} - Nombre de jours : {{bless.jours}} - Localisation : {{bless.localisation}} + {{#if bless.active}}{{else}}{{/if}} Premiers soins : {{bless.premiers_soins}} - Soins complets : {{bless.soins_complets}} - Nombre de jours : {{bless.jours}} - Localisation : {{bless.localisation}}
  • {{/each}}
    diff --git a/templates/item-conteneur-sheet.html b/templates/item-conteneur-sheet.html new file mode 100644 index 00000000..72f986c2 --- /dev/null +++ b/templates/item-conteneur-sheet.html @@ -0,0 +1,35 @@ +
    +
    + +
    +

    +
    +
    + + {{!-- Sheet Body --}} +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + Description : +
    +
    + {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} +
    +
    + +
    diff --git a/templates/item-munition-sheet.html b/templates/item-munition-sheet.html new file mode 100644 index 00000000..7d9514ec --- /dev/null +++ b/templates/item-munition-sheet.html @@ -0,0 +1,31 @@ +
    +
    + +
    +

    +
    +
    + + {{!-- Sheet Body --}} +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + Description : +
    +
    + {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} +
    +
    + +
    diff --git a/templates/item-objet-sheet.html b/templates/item-objet-sheet.html new file mode 100644 index 00000000..4856b520 --- /dev/null +++ b/templates/item-objet-sheet.html @@ -0,0 +1,35 @@ +
    +
    + +
    +

    +
    +
    + + {{!-- Sheet Body --}} +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + Description : +
    +
    + {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} +
    +
    + +