From 04accf426a88e4946cd0838355219f5a5638466f Mon Sep 17 00:00:00 2001 From: Peterlankton <61578137+Kapuzenjoe@users.noreply.github.com> Date: Wed, 27 Nov 2024 19:47:11 +0100 Subject: [PATCH] Update messages.js restore skill/save/ability functionality in dnd 4.1.2. However, some code cleanup is necessary and the damage critical feature does not work. --- src/messages.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/messages.js b/src/messages.js index ad64c0c..bfc1b55 100644 --- a/src/messages.js +++ b/src/messages.js @@ -27,7 +27,7 @@ class BaseMessage { } get prefix() { - return "dialogOptions"; + return "options"; } addMessage(options) { @@ -151,10 +151,9 @@ export class SkillMessage extends AbilityCheckMessage { /** @override */ get messageKeys() { - return super.messageKeys.concat( + return [ "flags.adv-reminder.message.skill.all", - `flags.adv-reminder.message.skill.${this.skillId}` - ); + `flags.adv-reminder.message.skill.${this.skillId}`] } } @@ -165,10 +164,7 @@ export class DeathSaveMessage extends AbilityBaseMessage { /** @override */ get messageKeys() { - return super.messageKeys.concat( - "flags.adv-reminder.message.ability.save.all", - "flags.adv-reminder.message.deathSave" - ); + return ["flags.adv-reminder.message.deathSave"] } }