From 73bc30f55231846ce3e2e6202007d9b02001f518 Mon Sep 17 00:00:00 2001 From: Chris Ryan Date: Thu, 4 Dec 2025 21:52:39 +1000 Subject: [PATCH] Trying to sort out the button for the fate roll --- module/enrichers/FateRollEnricher.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/enrichers/FateRollEnricher.mjs b/module/enrichers/FateRollEnricher.mjs index 420b0e35..fb186793 100644 --- a/module/enrichers/FateRollEnricher.mjs +++ b/module/enrichers/FateRollEnricher.mjs @@ -1,13 +1,16 @@ import { getCommandTarget, rollCommandToJSON } from '../helpers/utils.mjs'; export default function DhFateRollEnricher(match, _options) { + console.log("match", match); const roll = rollCommandToJSON(match[1], match[0]); if (!roll) return match[0]; + console.log("roll", roll); return getFateMessage(roll.result, roll?.flavor); } function getFateMessage(roll, flavor) { + console.log("roll", roll); const label = flavor ?? 'Fate'; const dataLabel = game.i18n.localize('DAGGERHEART.GENERAL.fate'); @@ -17,7 +20,7 @@ function getFateMessage(roll, flavor) {