From 51a4df73aba790f53bc525f7f2d37b19af8a38b7 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Sun, 7 Jun 2026 15:27:25 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Correction=20de=20l'affichage=20des=20vi?= =?UTF-8?q?rgules=20apr=C3=A8s=20les=20Pr=C3=A9dilections?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- templates/actor-sheet.hbs | 2 +- templates/creature-sheet.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/actor-sheet.hbs b/templates/actor-sheet.hbs index 4ce4c9d..cdff436 100644 --- a/templates/actor-sheet.hbs +++ b/templates/actor-sheet.hbs @@ -275,7 +275,7 @@ {{#each skill.system.predilections as |pred key|}} {{#if (and pred.acquise (not pred.used))}} - {{pred.name}}, + {{pred.name}}{{#unless (eq key (subtract skill.system.predilections.length 1))}}, {{/unless}} {{/if}} {{/each}} diff --git a/templates/creature-sheet.hbs b/templates/creature-sheet.hbs index bf642e8..6eab971 100644 --- a/templates/creature-sheet.hbs +++ b/templates/creature-sheet.hbs @@ -267,7 +267,7 @@ {{#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}}