From 22f12b8f0681111232f269c4c78533eff884866f Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 27 May 2021 00:29:33 +0200 Subject: [PATCH] fix inventaire MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pas de notion d'équiper pour les conteneurs, affichés en dernier --- templates/actor-sheet-inventaire-conteneur.html | 2 ++ templates/actor-sheet.html | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/actor-sheet-inventaire-conteneur.html b/templates/actor-sheet-inventaire-conteneur.html index 0c3c0570..bc58f94c 100644 --- a/templates/actor-sheet-inventaire-conteneur.html +++ b/templates/actor-sheet-inventaire-conteneur.html @@ -14,7 +14,9 @@ {{numberFormat item.data.encTotal decimals=2}}
{{#unless item.estContenu}} + {{#if (ne item.type 'conteneur')}} {{#if item.data.equipe}}{{else}}{{/if}} + {{/if}} {{/unless}} diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 6db86c66..6c035741 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -610,13 +610,14 @@ {{#each objets as |item id|}} {{#unless item.estContenu}} - {{#if (eq item.type 'conteneur')}} - {{buildConteneur this}} - {{else}} + {{#if (ne item.type 'conteneur')}} {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-inventaire-conteneur.html" item=item }} {{/if}} {{/unless}} {{/each}} + {{#each conteneurs as |conteneur id|}} + {{buildConteneur this}} + {{/each}}

Montures