From c5f021a9413e7028ed831d0456292d9c4baebed9 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Tue, 7 Mar 2023 20:33:31 +0100 Subject: [PATCH] Ajout et fixes divers --- modules/heritiers-config.js | 3 ++- system.json | 4 ++-- template.json | 1 + templates/item-pouvoir-sheet.html | 36 +++++++++++++++++++++---------- 4 files changed, 30 insertions(+), 14 deletions(-) diff --git a/modules/heritiers-config.js b/modules/heritiers-config.js index d406f94..484ba1b 100644 --- a/modules/heritiers-config.js +++ b/modules/heritiers-config.js @@ -27,7 +27,8 @@ export const HERITIERS_CONFIG = { }, baseTestPouvoir: { "feerie": "Féerie", - "Masque": "Masque" + "Masque": "Masque", + "autre": "Autre" }, resistancePouvoir: { "aucune": "Aucune", diff --git a/system.json b/system.json index 71aa591..b2b9ff4 100644 --- a/system.json +++ b/system.json @@ -1,7 +1,7 @@ { "id": "fvtt-les-heritiers", "description": "Les Héritiers pour FoundryVTT", - "version": "10.0.14", + "version": "10.0.15", "authors": [ { "name": "Uberwald/LeRatierBretonnien", @@ -19,7 +19,7 @@ "gridUnits": "m", "license": "LICENSE.txt", "manifest": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/raw/branch/master/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-10.0.14.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-10.0.15.zip", "languages": [ { "lang": "fr", diff --git a/template.json b/template.json index 7815020..81fe769 100644 --- a/template.json +++ b/template.json @@ -281,6 +281,7 @@ "activation": "", "istest": false, "feeriemasque": "feerie", + "testautre": "", "carac": "pre", "duree": "", "cibles": "", diff --git a/templates/item-pouvoir-sheet.html b/templates/item-pouvoir-sheet.html index 7d5674d..e4f14e0 100644 --- a/templates/item-pouvoir-sheet.html +++ b/templates/item-pouvoir-sheet.html @@ -73,17 +73,25 @@ -
  • - - -
  • + {{#if (eq system.feeriemasque "autre")}} +
  • + + +
  • + {{else}} +
  • + + +
  • + {{/if}} + {{/if}}
  • @@ -91,6 +99,12 @@
  • + +
  • + + +