From 9ad54a9056e6a77113d58f4404b87bde92872626 Mon Sep 17 00:00:00 2001 From: moliloo Date: Tue, 29 Jul 2025 00:01:28 -0300 Subject: [PATCH] style action messages --- lang/en.json | 3 +++ module/data/fields/actionField.mjs | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lang/en.json b/lang/en.json index c6e6d5fd..950af403 100755 --- a/lang/en.json +++ b/lang/en.json @@ -1646,6 +1646,9 @@ }, "UI": { "Chat": { + "action": { + "title": "Action" + }, "applyEffect": { "title": "Apply Effects - {name}" }, diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index 3135988b..00948f40 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -254,11 +254,15 @@ export function ActionMixin(Base) { origin: origin, action: { name: this.name, img: this.img, tags: this.tags ? this.tags : ['Spell', 'Arcana', 'Lv 10'] }, itemOrigin: this.item, - description: this.description, + description: this.description }; const msg = { type: 'abilityUse', user: game.user.id, + actor: { name: this.actor.name, img: this.actor.img }, + author: this.author, + speaker: cls.getSpeaker(), + title: game.i18n.localize('DAGGERHEART.UI.Chat.action.title'), system: systemData, content: await foundry.applications.handlebars.renderTemplate( 'systems/daggerheart/templates/ui/chat/action.hbs',