foundryvtt-reve-de-dragon/templates/actor/inventaire.html

36 lines
1.3 KiB
HTML
Raw Normal View History

<h4>Equipement</h4>
<span class="item-name">
2023-02-05 20:30:19 +01:00
{{#if options.isOwner}}
<a class="chat-card-button creer-un-objet">Nouvel objet</a>
{{/if}}
{{#if options.isGM}}
<a class="chat-card-button nettoyer-conteneurs">Tout vider</a>
{{/if}}
<span class="embed-inline">
<input class="recherche flex-grow" type="text" value="{{options.recherche.text}}" name="recherche" size="8" data-dtype="String" placeholder=""/>
</span>
{{#if calc.surEncombrementMessage}}<b>{{calc.surEncombrementMessage}}</b> &hyphen;{{/if}}
Encombrement: {{numberFormat calc.encTotal decimals=2}} (max: {{system.attributs.encombrement.value}})
{{#if (regle-optionnelle 'afficher-prix-joueurs')}}
&hyphen; Valeur: {{numberFormat calc.prixTotalEquipement decimals=2}} Sols
{{/if}}
</span>
2022-08-27 16:23:22 +02:00
<ul class="item-list alterne-list">
<li class="competence-header flexrow">
<span class="equipement-nom">Nom</span>
<span class="equipement-detail">Q.</span>
<span class="equipement-detail">Enc.</span>
<span class="equipement-actions">Actions</span>
</li>
{{#each inventaires as |item id|}}
2022-08-27 16:23:22 +02:00
{{#unless item.estContenu}}
{{#if (ne item.type 'conteneur')}}
{{buildLigneInventaire item @root.options}}
2022-08-27 16:23:22 +02:00
{{/if}}
{{/unless}}
{{/each}}
{{#each conteneurs as |conteneur id|}}
{{buildLigneInventaire conteneur @root.options}}
2022-08-27 16:23:22 +02:00
{{/each}}
</ul>