Fix: Add predilections and description to competence post-item template

Améliore l'affichage des compétences dans le chat en ajoutant :
- La liste des prédilections avec leurs propriétés (nom, description, maîtrisée, acquise, utilisée)
- La description est déjà affichée (déjà présente dans le template)

Cela permet aux joueurs de voir toutes les informations importantes
lorsqu'une compétence est postée dans le chat.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-05-24 16:25:46 +02:00
parent c62131ac97
commit 2d5b844796
+20
View File
@@ -34,6 +34,26 @@
{{#if (ne system.attribut1 "none")}}<div class="post-stat"><span class="stat-label">Attribut 1</span><span class="stat-value">{{upper system.attribut1}}</span></div>{{/if}} {{#if (ne system.attribut1 "none")}}<div class="post-stat"><span class="stat-label">Attribut 1</span><span class="stat-value">{{upper system.attribut1}}</span></div>{{/if}}
{{#if (ne system.attribut2 "none")}}<div class="post-stat"><span class="stat-label">Attribut 2</span><span class="stat-value">{{upper system.attribut2}}</span></div>{{/if}} {{#if (ne system.attribut2 "none")}}<div class="post-stat"><span class="stat-label">Attribut 2</span><span class="stat-value">{{upper system.attribut2}}</span></div>{{/if}}
</div> </div>
{{!-- Prédilections pour les compétences --}}
{{#if system.predilections}}
<div class="post-item-predilections">
<h4>Prédilections</h4>
<ul>
{{#each system.predilections as |pred|}}
{{#if pred.name}}
<li>
<strong>{{pred.name}}</strong>
{{#if pred.description}}<span>: {{pred.description}}</span>{{/if}}
{{#if pred.maitrise}}<em> (Maîtrisée)</em>{{/if}}
{{#if pred.acquise}}<em> [Acquise]</em>{{/if}}
{{#if pred.used}}<em> [Utilisée]</em>{{/if}}
</li>
{{/if}}
{{/each}}
</ul>
</div>
{{/if}}
{{/if}} {{/if}}
{{#if (eq type "rune")}} {{#if (eq type "rune")}}