From 19f690a0fbcef89efab9328d3a8984b1cc8a71d1 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Wed, 13 Aug 2025 13:35:16 +0200 Subject: [PATCH] Fixed so custom downtime moves will display their descriptions in the tooltip (#894) --- module/documents/tooltipManager.mjs | 8 ++++---- templates/dialogs/downtime/activities.hbs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/documents/tooltipManager.mjs b/module/documents/tooltipManager.mjs index ec6c8d9e..95621441 100644 --- a/module/documents/tooltipManager.mjs +++ b/module/documents/tooltipManager.mjs @@ -49,11 +49,11 @@ export default class DhTooltipManager extends foundry.helpers.interaction.Toolti const longRest = element.dataset.tooltip?.startsWith('#longRest#'); if (shortRest || longRest) { const key = element.dataset.tooltip.slice(shortRest ? 11 : 10); - const downtimeOptions = shortRest - ? CONFIG.DH.GENERAL.defaultRestOptions.shortRest() - : CONFIG.DH.GENERAL.defaultRestOptions.longRest(); - const move = downtimeOptions[key]; + const moves = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).restMoves[ + element.dataset.restType + ].moves; + const move = moves[key]; const description = await TextEditor.enrichHTML(move.description); html = await foundry.applications.handlebars.renderTemplate( `systems/daggerheart/templates/ui/tooltip/downtime.hbs`, diff --git a/templates/dialogs/downtime/activities.hbs b/templates/dialogs/downtime/activities.hbs index f67e8a10..4eca8b50 100644 --- a/templates/dialogs/downtime/activities.hbs +++ b/templates/dialogs/downtime/activities.hbs @@ -3,7 +3,7 @@