From df84d0e1171ade69831b7601bc114b19e530b6a2 Mon Sep 17 00:00:00 2001 From: Chris Ryan Date: Fri, 9 Jan 2026 11:32:12 +1000 Subject: [PATCH 1/2] Display the Death Move description in chat expanded if the appropriate config setting is on --- module/applications/dialogs/deathMove.mjs | 8 +++++++- templates/ui/chat/deathMove.hbs | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/module/applications/dialogs/deathMove.mjs b/module/applications/dialogs/deathMove.mjs index 01f70413..2be56dd0 100644 --- a/module/applications/dialogs/deathMove.mjs +++ b/module/applications/dialogs/deathMove.mjs @@ -143,6 +143,10 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV } static async takeMove() { + const autoExpandDescription = game.settings.get( + CONFIG.DH.id, + CONFIG.DH.SETTINGS.gameSettings.appearance + ).expandRollMessage?.desc; const cls = getDocumentClass('ChatMessage'); const msg = { user: game.user.id, @@ -154,7 +158,9 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV author: game.users.get(game.user.id), title: game.i18n.localize(this.selectedMove.name), img: this.selectedMove.img, - description: game.i18n.localize(this.selectedMove.description) + description: game.i18n.localize(this.selectedMove.description), + open: autoExpandDescription ? 'open' : '', + chevron: autoExpandDescription ? 'fa-chevron-up' : 'fa-chevron-down' } ), title: game.i18n.localize( diff --git a/templates/ui/chat/deathMove.hbs b/templates/ui/chat/deathMove.hbs index 9940376e..e30461eb 100644 --- a/templates/ui/chat/deathMove.hbs +++ b/templates/ui/chat/deathMove.hbs @@ -1,13 +1,13 @@