From 55d49e8230321fc75dabefca4dfade908349086b Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 3 Jan 2021 00:44:52 +0100 Subject: [PATCH] =?UTF-8?q?#76=20Saisie=20des=20m=C3=A9ditations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/item-sheet.js | 2 +- module/rdd-utility.js | 1 + system.json | 2 +- template.json | 1 + templates/item-meditation-sheet.html | 76 ++++++++++++++++++++++++++++ templates/item-tache-sheet.html | 2 +- 6 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 templates/item-meditation-sheet.html diff --git a/module/item-sheet.js b/module/item-sheet.js index 836b456b..d059e20d 100644 --- a/module/item-sheet.js +++ b/module/item-sheet.js @@ -47,7 +47,7 @@ export class RdDItemSheet extends ItemSheet { async getData() { let data = super.getData(); - if ( data.item.type == 'tache' || data.item.type == 'livre') { + if ( data.item.type == 'tache' || data.item.type == 'livre' || data.item.type == 'meditation') { data.caracList = duplicate(game.system.model.Actor.personnage.carac); data.competenceList = await RdDUtility.getCompetenceList( 'foundryvtt-reve-de-dragon.competences' ); } diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 4c3611e1..d92c68d0 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -164,6 +164,7 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/item-tete-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/item-ombre-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/item-monnaie-sheet.html', + 'systems/foundryvtt-reve-de-dragon/templates/item-meditation-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 6fe94213..4fc5c490 100644 --- a/system.json +++ b/system.json @@ -5,7 +5,7 @@ "version": "1.2.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.8", - "templateVersion": 76, + "templateVersion": 77, "author": "LeRatierBretonnien", "esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ], "styles": ["styles/simple.css"], diff --git a/template.json b/template.json index 96bdc4e7..a42ecfba 100644 --- a/template.json +++ b/template.json @@ -725,6 +725,7 @@ "veture": "", "comportement": "", "tmr": "", + "malus" : 0, "description": "" }, "casetmr": { diff --git a/templates/item-meditation-sheet.html b/templates/item-meditation-sheet.html new file mode 100644 index 00000000..e6d43e1c --- /dev/null +++ b/templates/item-meditation-sheet.html @@ -0,0 +1,76 @@ +
+
+ +
+

+
+
+ + {{!-- Sheet Body --}} +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} +
+
+ +
diff --git a/templates/item-tache-sheet.html b/templates/item-tache-sheet.html index 20c06b01..43a58f1f 100644 --- a/templates/item-tache-sheet.html +++ b/templates/item-tache-sheet.html @@ -21,7 +21,7 @@