Corrections mineurs commerces et ventes #602

Merged
uberwald merged 3 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2023-01-04 21:17:10 +01:00
Showing only changes of commit 39d14c8496 - Show all commits

View File

@ -41,24 +41,20 @@
</span>
<span class="equipement-actions item-controls">
{{#if options.isOwner}}
{{#if (and (eq item.type 'conteneur') (not vide))}}
<a class="item-edit" title="Editer"><i class="fas fa-edit"></i></a>
{{else}}
<a class="item-edit" title="Editer"><i class="fas fa-edit"></i></a>
{{#unless (and (eq item.type 'conteneur') (not vide))}}
<a class="item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
{{#if (or item.parent.system.illimite (ne item.system.quantite 0))}}
<a class="item-vendre" title="Vendre"><i class="fas fa-comments-dollar"></i></a>
{{/if}}
{{#if (gt item.system.quantite 0)}}
<a class="item-acheter" title="Acheter"><i class="fa-regular fa-coins"></i></a>
{{/unless}}
{{/if}}
{{/if}}
{{else}}
{{#unless (and (eq item.type 'conteneur') (not vide))}}
{{#if (or item.parent.system.illimite (gt item.system.quantite 0))}}
<a class="item-acheter" title="Acheter"><i class="fa-regular fa-coins"></i></a>
{{/if}}
{{/if}}
<a class="item-montrer" title="Montrer"><i class="fas fa-comment"></i></a>
{{/unless}}
</span>
</li>
{{/if}}