From f816e7bd11d6aefcbc8a0e417f0ee437787e9097 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Fri, 30 Dec 2022 12:07:44 +0100 Subject: [PATCH] Rework capacite+pouvoir --- modules/heritiers-config.js | 1 + system.json | 4 +-- template.json | 3 +++ templates/item-capacitenaturelle-sheet.html | 30 +++++++++++++++------ templates/item-pouvoir-sheet.html | 12 ++++----- 5 files changed, 34 insertions(+), 16 deletions(-) diff --git a/modules/heritiers-config.js b/modules/heritiers-config.js index 11aebb0..1aeda7c 100644 --- a/modules/heritiers-config.js +++ b/modules/heritiers-config.js @@ -30,6 +30,7 @@ export const HERITIERS_CONFIG = { "Masque": "Masque" }, resistancePouvoir: { + "aucune": "Aucune", "physiquepassive": "Physique Passive", "physiqueactive": "Physique Active", "psychiquepassive": "Psychique Passive", diff --git a/system.json b/system.json index ad9e30c..c2c28d9 100644 --- a/system.json +++ b/system.json @@ -1,7 +1,7 @@ { "id": "fvtt-les-heritiers", "description": "Les Héritiers pour FoundryVTT", - "version": "10.0.3", + "version": "10.0.4", "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.3.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-10.0.4.zip", "languages": [ { "lang": "fr", diff --git a/template.json b/template.json index 7553501..ba797a2 100644 --- a/template.json +++ b/template.json @@ -251,8 +251,10 @@ "activation": "", "cibles": "", "effet": "", + "duree": "", "portee": "", "resistance": "", + "resistanceautre":"", "description": "" }, "pouvoir": { @@ -263,6 +265,7 @@ "istest": false, "feeriemasque": "feerie", "carac": "pre", + "duree": "", "cibles": "", "effet": "", "portee": "", diff --git a/templates/item-capacitenaturelle-sheet.html b/templates/item-capacitenaturelle-sheet.html index 6c63575..7da1936 100644 --- a/templates/item-capacitenaturelle-sheet.html +++ b/templates/item-capacitenaturelle-sheet.html @@ -26,34 +26,48 @@
  • -
  • -
  • - +
  • -
  • - - + +
  • + {{#if (eq system.resistance "autre")}} +
  • + + +
  • + {{/if}} + diff --git a/templates/item-pouvoir-sheet.html b/templates/item-pouvoir-sheet.html index 346d2a8..914c1d2 100644 --- a/templates/item-pouvoir-sheet.html +++ b/templates/item-pouvoir-sheet.html @@ -50,7 +50,7 @@
  • -
  • @@ -88,19 +88,19 @@
  • -
  • - +
  • -
  • @@ -119,7 +119,7 @@ {{#if (eq system.resistance "autre")}}
  • -
  • {{/if}}