37 lines
1.7 KiB
Handlebars
37 lines
1.7 KiB
Handlebars
{{#unless item.system.isHidden}}
|
|
{{#if (or options.isObserver (ne item.type 'monnaie'))}}
|
|
<li class="item flexrow list-item" data-item-id="{{item._id}}" draggable="true" data-tooltip="{{#if (gt item.system.quantite 1)}}{{item.system.quantite}} {{/if}}{{item.name}}">
|
|
<span class="equipement-nom {{#if (eq item.type 'conteneur')}}conteneur-name{{/if}} ">
|
|
{{#if (eq item.type 'conteneur')}}
|
|
<a>
|
|
<i class="{{~#if vide}}far fa-square
|
|
{{else if ouvert}}far fa-minus-square
|
|
{{else}}far fa-plus-square
|
|
{{/if~}}"></i>
|
|
<img class="sheet-competence-img" src="{{item.img}}"/>
|
|
<span>{{item.name}}{{#if item.system.magique}} <i class="fa-solid fa-sparkles" data-tooltip="Enchantement"></i>{{/if}}</span>
|
|
</a>
|
|
{{else}}
|
|
<img class="sheet-competence-img" src="{{item.img}}"/>
|
|
<span>{{item.name}}{{#if item.system.magique}} <i class="fa-solid fa-sparkles" data-tooltip="Enchantement"></i>{{/if}}</span>
|
|
{{#if (eq item.type 'arme')}}
|
|
{{>"systems/foundryvtt-reve-de-dragon/templates/item/icon-arme-broken.hbs" item}}
|
|
{{/if}}
|
|
</span>
|
|
{{/if}}
|
|
</span>
|
|
<span class="equipement-detail">
|
|
{{#if (gt item.system.quantite 1)}}
|
|
<a class="item-quantite-moins" data-tooltip="Diminuer la quantité de {{item.name}}"><i class="fa-solid fa-square-minus"></i></a>
|
|
{{/if}}
|
|
{{item.system.quantite}}
|
|
{{#if @root.options.isGM}}
|
|
<a class="item-quantite-plus" data-tooltip="Augmenter la quantité de {{item.name}}"><i class="fa-solid fa-square-plus"></i></a>
|
|
{{/if}}
|
|
</span>
|
|
<span class="equipement-detail">{{numberFormat item.system.encTotal decimals=2}}</span>
|
|
{{>'systems/foundryvtt-reve-de-dragon/templates/actor/item-action-controls.hbs' item=item options=options}}
|
|
</li>
|
|
{{/if}}
|
|
{{/unless}}
|