Files
foundryvtt-reve-de-dragon/templates/post-item-compact.hbs
T
fabres 5969009eb1 feat(inventaire): boutons +Ration/+Eau, cartouche chat compact
- Boutons +Ration et +Eau dans l'onglet Équipement
- Incrémente la quantité si l'item existe déjà, sinon le crée
- Nouveau template post-item-compact.hbs pour l'aperçu chat
- _MONTRER utilise désormais le cartouche compact
- postItemToChatCompact() awaitable, champs filtrés par type d'inventaire
2026-07-22 00:26:52 +02:00

17 lines
530 B
Handlebars

<div class="post-item-compact">
<h4><img class="chat-icon" src="{{img}}" /> {{name}}</h4>
<p>
<span class="tag">{{typeLabel}}</span>
{{#if (ne encombrement undefined)}}<span class="tag">Enc. {{encombrement}}</span>{{/if}}
{{#if (ne cout undefined)}}<span class="tag">{{cout}} sols</span>{{/if}}
{{#if (ne quantite undefined)}}<span class="tag">x{{quantite}}</span>{{/if}}
</p>
{{#if stats.length}}
<p>
{{#each stats as |s|}}
<span class="tag">{{{s}}}</span>
{{/each}}
</p>
{{/if}}
</div>