Fix: Correction de l'affichage des virgules après les Prédilections

- Suppression de la virgule finale lorsqu'il n'y a qu'une seule Prédilection affichée
- Utilisation du helper subtract pour vérifier si c'est la dernière prédilection dans la liste
- Correction appliquée à la fois sur actor-sheet.hbs et creature-sheet.hbs

Avant : 'Prédilection1,' (virgule inutile)
Après : 'Prédilection1' (pas de virgule) ou 'Prédilection1, Prédilection2' (virgule seulement entre les éléments)

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-06-07 15:27:25 +02:00
parent c0bc37e32a
commit 51a4df73ab
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -275,7 +275,7 @@
<span class="predilection-text"> <span class="predilection-text">
{{#each skill.system.predilections as |pred key|}} {{#each skill.system.predilections as |pred key|}}
{{#if (and pred.acquise (not pred.used))}} {{#if (and pred.acquise (not pred.used))}}
{{pred.name}}, {{pred.name}}{{#unless (eq key (subtract skill.system.predilections.length 1))}}, {{/unless}}
{{/if}} {{/if}}
{{/each}} {{/each}}
</span> </span>
+1 -1
View File
@@ -267,7 +267,7 @@
</span> </span>
<span class="predilection-text"> <span class="predilection-text">
{{#each skill.system.predilections as |pred key|}} {{#each skill.system.predilections as |pred key|}}
{{#if (and pred.acquise (not pred.used))}}{{pred.name}}, {{/if}} {{#if (and pred.acquise (not pred.used))}}{{pred.name}}{{#unless (eq key (subtract skill.system.predilections.length 1))}}, {{/unless}}{{/if}}
{{/each}} {{/each}}
</span> </span>
</div> </div>