fix inventaire

pas de notion d'équiper pour les conteneurs, affichés en dernier
This commit is contained in:
Vincent Vandemeulebrouck 2021-05-27 00:29:33 +02:00
parent 8eaa12e2c6
commit 22f12b8f06
2 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,9 @@
<span class="item-quantite">{{numberFormat item.data.encTotal decimals=2}}</span>
<div class="item-controls flex-grow">
{{#unless item.estContenu}}
{{#if (ne item.type 'conteneur')}}
<a class="item-control item-equip" title="Equiper">{{#if item.data.equipe}}<i class="fas fa-hand-rock"></i>{{else}}<i class="far fa-hand-paper"></i>{{/if}}</a>
{{/if}}
{{/unless}}
<a class="item-control item-edit" title="Editer"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>

View File

@ -610,13 +610,14 @@
</li>
{{#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}}
</ul>
<span class="item-name"><h4>Montures</h4></span>