From 1dc804697e411f1afedf4864ce45d824fa763a11 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 23 Jan 2022 22:01:13 +0100 Subject: [PATCH] Sync --- modules/yggdrasill-utility.js | 4 +++- templates/chat-generic-result.html | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/yggdrasill-utility.js b/modules/yggdrasill-utility.js index 0f1742e..1ba30b0 100644 --- a/modules/yggdrasill-utility.js +++ b/modules/yggdrasill-utility.js @@ -206,7 +206,9 @@ export class YggdrasillUtility { // Select niveau de competence/arme/carac if ( rollData.mode != "carac" ) { niveauCompetence = rollData.competence.data.niveau; - } + } else { + niveauCompetence = rollData.selectedCarac.value; + } // Bonus/Malus total rollData.finalBM = rollData.bonusMalus; diff --git a/templates/chat-generic-result.html b/templates/chat-generic-result.html index b45e7e2..c08214e 100644 --- a/templates/chat-generic-result.html +++ b/templates/chat-generic-result.html @@ -56,6 +56,9 @@ {{#if (eq mode "competence")}}
  • Competence : {{niveauCompetence}}
  • {{/if}} + {{#if (eq mode "carac")}} +
  • Carac : {{niveauCompetence}}
  • + {{/if}}
  • Bonus/Malus Final : {{finalBM}}