From dffe191d6e2ab038daf1991f55b6f0888d54e946 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 12 Jun 2022 12:23:33 +0200 Subject: [PATCH] Big WIP... --- module/item-meditation.js | 2 +- templates/dialog-roll-meditation.html | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/module/item-meditation.js b/module/item-meditation.js index fb77f098..3aa6742a 100644 --- a/module/item-meditation.js +++ b/module/item-meditation.js @@ -3,7 +3,7 @@ export class RdDItemMeditation { static calculDifficulte(rollData) { if (rollData.meditation) { // Malus permanent éventuel - let diff = rollData.meditation.data.malus ?? 0; + let diff = rollData.meditation.system.malus ?? 0; if (!rollData.conditionMeditation.isHeure) diff -= 2; if (!rollData.conditionMeditation.isVeture) diff -= 2; if (!rollData.conditionMeditation.isComportement) diff -= 2; diff --git a/templates/dialog-roll-meditation.html b/templates/dialog-roll-meditation.html index 718ae819..f6ef1df4 100644 --- a/templates/dialog-roll-meditation.html +++ b/templates/dialog-roll-meditation.html @@ -4,14 +4,14 @@
{{competence.name}}
- +
- - + +
+ {{numberFormat carac.intellect.value decimals=0 sign=false}} / {{numberFormat competence.system.niveau decimals=0 sign=true}}
@@ -19,19 +19,19 @@
- +
- +
- +
- +