Skip to content

Commit

Permalink
Update messages.js
Browse files Browse the repository at this point in the history
restore skill/save/ability functionality in dnd 4.1.2. However, some code cleanup is necessary and the damage critical feature does not work.
  • Loading branch information
Kapuzenjoe authored Nov 27, 2024
1 parent 009cdf5 commit 04accf4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BaseMessage {
}

get prefix() {
return "dialogOptions";
return "options";
}

addMessage(options) {
Expand Down Expand Up @@ -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}`]
}
}

Expand All @@ -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"]
}
}

Expand Down

0 comments on commit 04accf4

Please sign in to comment.