From 8c8029624ae34ff4058765a83f1c6eed2d1e5b2a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 3 Jan 2021 01:24:49 +0100 Subject: [PATCH] =?UTF-8?q?=20#94=20-=20t=C3=A2ches=20de=20premiers=20soin?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/item-sheet.js | 4 ++-- packs/taches-courantes.db | 3 +++ system.json | 9 +++++++++ templates/item-tache-sheet.html | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 packs/taches-courantes.db diff --git a/module/item-sheet.js b/module/item-sheet.js index d059e20d..de108e25 100644 --- a/module/item-sheet.js +++ b/module/item-sheet.js @@ -13,8 +13,8 @@ export class RdDItemSheet extends ItemSheet { return mergeObject(super.defaultOptions, { classes: ["foundryvtt-reve-de-dragon", "sheet", "item"], template: "systems/foundryvtt-reve-de-dragon/templates/item-sheet.html", - width: 520, - height: 480 + width: 550, + height: 550 //tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}] }); } diff --git a/packs/taches-courantes.db b/packs/taches-courantes.db new file mode 100644 index 00000000..f73d70bb --- /dev/null +++ b/packs/taches-courantes.db @@ -0,0 +1,3 @@ +{"_id":"dlvK5Lks7WoSZ1Ko","name":"1er soins - Blessure critique","permission":{"default":0,"Q2G6GTdrotKzYGUC":3},"type":"tache","data":{"carac":"dexterite","competence":"Chirurgie","periodicite":"1 round","fatigue":0,"difficulte":-6,"points_de_tache":6,"points_de_tache_courant":0,"description":"

Effectuer les premiers soins consiste à obtenir le nombre de points de tâche demandé par la blessure. Un minimum de matériel est nécessaire : de l’eau, des chi!ons propres pour servir de pansements.

\n

 

"},"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_chirurgie.png","effects":[]} +{"_id":"lHdfav9mvs68yj7J","name":"1er soins - Blessure légère","permission":{"default":0,"Q2G6GTdrotKzYGUC":3},"type":"tache","data":{"carac":"dexterite","competence":"Chirurgie","periodicite":"1 round","fatigue":0,"difficulte":-2,"points_de_tache":2,"points_de_tache_courant":0,"description":"

Effectuer les premiers soins consiste à obtenir le nombre de points de tâche demandé par la blessure. Un minimum de matériel est nécessaire : de l’eau, des chi!ons propres pour servir de pansements.

\n

 

"},"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_chirurgie.png","effects":[]} +{"_id":"nbkuXbhgSxHwXD4t","name":"1er soins - Blessure grave","permission":{"default":0,"Q2G6GTdrotKzYGUC":3},"type":"tache","data":{"carac":"dexterite","competence":"Chirurgie","periodicite":"1 round","fatigue":0,"difficulte":-4,"points_de_tache":4,"points_de_tache_courant":0,"description":"

Effectuer les premiers soins consiste à obtenir le nombre de points de tâche demandé par la blessure. Un minimum de matériel est nécessaire : de l’eau, des chi!ons propres pour servir de pansements.

\n

 

"},"flags":{},"img":"systems/foundryvtt-reve-de-dragon/icons/competence_chirurgie.png","effects":[]} diff --git a/system.json b/system.json index 4fc5c490..2a2ca62a 100644 --- a/system.json +++ b/system.json @@ -198,6 +198,15 @@ "path": "./packs/botanique.db", "entity": "Item", "tags" : [ "plantes", "champignons", "herbes" ] + }, + { + "name": "taches-courantes", + "label": "Tâches courantes", + "system": "foundryvtt-reve-de-dragon", + "module": "foundryvtt-reve-de-dragon", + "path": "./packs/taches-courantes.db", + "entity": "Item", + "tags" : [ "taches" ] } ], "languages": [], diff --git a/templates/item-tache-sheet.html b/templates/item-tache-sheet.html index 43a58f1f..8e368d1b 100644 --- a/templates/item-tache-sheet.html +++ b/templates/item-tache-sheet.html @@ -49,7 +49,7 @@ -
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}