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 @@