2023-02-05 20:26:44 +01:00
|
|
|
{{#unless item.system.isHidden}}
|
2023-01-28 15:43:31 +01:00
|
|
|
{{#if (or options.isObserver (ne item.type 'monnaie'))}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<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}}">
|
2022-08-27 16:23:22 +02:00
|
|
|
<span class="equipement-nom {{#if (eq item.type 'conteneur')}}conteneur-name{{/if}} ">
|
|
|
|
{{#if (eq item.type 'conteneur')}}
|
2022-09-25 17:51:57 +02:00
|
|
|
<a>
|
|
|
|
<i class="{{~#if vide}}far fa-square
|
|
|
|
{{else if ouvert}}far fa-minus-square
|
|
|
|
{{else}}far fa-plus-square
|
|
|
|
{{/if~}}"></i>
|
2023-12-04 01:21:05 +01:00
|
|
|
<img class="sheet-competence-img" src="{{item.img}}"/>
|
2023-11-20 17:19:52 +01:00
|
|
|
<span>{{item.name}}</span>
|
2022-09-25 17:51:57 +02:00
|
|
|
</a>
|
2023-11-20 17:19:52 +01:00
|
|
|
{{else}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<img class="sheet-competence-img" src="{{item.img}}"/>
|
2023-11-20 17:19:52 +01:00
|
|
|
<span>{{item.name}}
|
|
|
|
{{#if (eq item.type 'arme')}}
|
|
|
|
{{>"systems/foundryvtt-reve-de-dragon/templates/item/icon-arme-broken.hbs" item}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-08-27 16:23:22 +02:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2023-03-30 02:56:06 +02:00
|
|
|
<span class="equipement-detail">
|
|
|
|
{{#if (gt item.system.quantite 1)}}
|
2023-12-10 22:17:49 +01:00
|
|
|
<a class="item-quantite-moins" data-tooltip="Diminuer la quantité de {{item.name}}"><i class="fa-solid fa-square-minus"></i></a>
|
2023-03-30 02:56:06 +02:00
|
|
|
{{/if}}
|
|
|
|
{{item.system.quantite}}
|
2022-09-06 23:52:21 +02:00
|
|
|
{{#if (gt item.system.quantite 1)}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-split" data-tooltip="Séparer le groupe de {{item.name}}"><i class="fas fa-unlink"></i></a>
|
2021-04-13 00:58:05 +02:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-09-06 23:52:21 +02:00
|
|
|
<span class="equipement-detail">{{numberFormat item.system.encTotal decimals=2}}</span>
|
2022-08-27 22:58:26 +02:00
|
|
|
<span class="equipement-actions item-controls">
|
2023-01-28 15:43:31 +01:00
|
|
|
{{#if options.isOwner}}
|
2023-01-28 16:34:09 +01:00
|
|
|
{{#unless item.estContenu}}
|
2023-04-18 22:16:18 +02:00
|
|
|
{{#if item.equipable}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-equip" data-tooltip="Equiper">{{#if item.system.equipe}}<i class="fas fa-hand-rock"></i>{{else}}<i class="far fa-hand-paper"></i>{{/if}}</a>
|
2023-01-28 16:34:09 +01:00
|
|
|
{{/if}}
|
|
|
|
{{/unless}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-edit" data-tooltip="Editer"><i class="fas fa-edit"></i></a>
|
|
|
|
<a class="item-delete" data-tooltip="Supprimer"><i class="fas fa-trash"></i></a>
|
2023-01-28 16:34:09 +01:00
|
|
|
|
|
|
|
{{#if (ne item.system.quantite 0)}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-vendre" data-tooltip="Vendre ou donner"><i class="fas fa-comments-dollar"></i></a>
|
2023-01-28 16:34:09 +01:00
|
|
|
{{/if}}
|
2022-12-29 02:24:18 +01:00
|
|
|
{{/if}}
|
2023-12-04 01:21:05 +01:00
|
|
|
<a class="item-montrer" data-tooltip="Montrer"><i class="fas fa-comment"></i></a>
|
2023-01-28 15:43:31 +01:00
|
|
|
{{#if options.isOwner}}
|
2023-01-28 16:34:09 +01:00
|
|
|
{{#if item.system.actionPrincipale}}
|
|
|
|
<a class="item-action">{{item.system.actionPrincipale}}</a>
|
|
|
|
{{/if}}
|
2022-12-29 02:24:18 +01:00
|
|
|
{{/if}}
|
2022-08-27 16:23:22 +02:00
|
|
|
</span>
|
2020-12-01 22:18:15 +01:00
|
|
|
</li>
|
2022-12-29 02:24:18 +01:00
|
|
|
{{/if}}
|
2023-02-05 20:26:44 +01:00
|
|
|
{{/unless}}
|