From e4f432c78152fea9e810dff003f76fd93bb2ec12 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 4 Apr 2021 09:37:35 +0200 Subject: [PATCH] #171 - Gestion potion de soins --- module/item-competence.js | 2 +- module/rdd-utility.js | 1 + system.json | 4 ++-- template.json | 6 +++++- templates/enum-categorie-ingredient.html | 10 ++++++---- templates/item-potion-sheet.html | 20 ++++++++++++++++++++ 6 files changed, 35 insertions(+), 8 deletions(-) diff --git a/module/item-competence.js b/module/item-competence.js index 85d38ef6..4476775b 100644 --- a/module/item-competence.js +++ b/module/item-competence.js @@ -67,7 +67,7 @@ export class RdDItemCompetence extends Item { } /* -------------------------------------------- */ static getNiveauBase(category) { - return categorieCompetences[category].base; + return categorieCompetences[category].niveau; } /* -------------------------------------------- */ static getLabelCategorie(category) { diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 4dccecc8..2b552514 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -137,6 +137,7 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-parade.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-vehicule.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-competence.html', + 'systems/foundryvtt-reve-de-dragon/templates/enum-herbesoin-ingredient.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-initpremierround.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-rarete.html', 'systems/foundryvtt-reve-de-dragon/templates/sort-draconic.html', diff --git a/system.json b/system.json index 89b0f15b..0412d539 100644 --- a/system.json +++ b/system.json @@ -2,11 +2,11 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.3.36", + "version": "1.4.0", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.9", - "templateVersion": 97, + "templateVersion": 110, "author": "LeRatierBretonnien", "authors": [ { diff --git a/template.json b/template.json index a4e51428..1934018a 100644 --- a/template.json +++ b/template.json @@ -723,7 +723,11 @@ "encombrement": 0, "rarete": "", "categorie": "", - "cout": 0 + "soinherbe": "", + "soinherbebonus": 0, + "pr": 0, + "prdate": 0, + "cout": 0 }, "rencontresTMR": { "description": "" diff --git a/templates/enum-categorie-ingredient.html b/templates/enum-categorie-ingredient.html index 9faf1346..a6a2b039 100644 --- a/templates/enum-categorie-ingredient.html +++ b/templates/enum-categorie-ingredient.html @@ -1,5 +1,7 @@ - - - - + + + + + + diff --git a/templates/item-potion-sheet.html b/templates/item-potion-sheet.html index 041afe1e..86abf880 100644 --- a/templates/item-potion-sheet.html +++ b/templates/item-potion-sheet.html @@ -36,6 +36,26 @@ {{/select}} +
+ + +
+
+ + +
+
+ + +
+
+ + +