diff --git a/lang/en.json b/lang/en.json index c3b9284f..d0b8d0f7 100755 --- a/lang/en.json +++ b/lang/en.json @@ -1326,6 +1326,11 @@ "short": "V. Far" } }, + "ReloadChoices": { + "off": { "label": "Don't Use" }, + "button": { "label": "Use button" }, + "auto": { "label": "Automatic" } + }, "RollTypes": { "trait": { "name": "Trait" diff --git a/module/applications/ui/chatLog.mjs b/module/applications/ui/chatLog.mjs index 02846400..4ef19b4b 100644 --- a/module/applications/ui/chatLog.mjs +++ b/module/applications/ui/chatLog.mjs @@ -282,6 +282,6 @@ export default class DhpChatLog extends foundry.applications.sidebar.tabs.ChatLo async onRollReloadCheck(_event, messageData) { const message = game.messages.get(messageData._id); const needReload = await message.system.action.handleReload?.({ awaitRoll: true }); - await message.update({ 'system.needReload': needReload }); + await message.update({ 'system.needsReload': needReload }); } } diff --git a/module/config/settingsConfig.mjs b/module/config/settingsConfig.mjs index 9e061cdc..33cce535 100644 --- a/module/config/settingsConfig.mjs +++ b/module/config/settingsConfig.mjs @@ -63,14 +63,14 @@ export const actionAutomationChoices = { export const reloadChoices = { off: { id: 'off', - label: 'Don\'t Use' + label: 'DAGGERHEART.CONFIG.ReloadChoices.off.label' }, button: { id: 'button', - label: 'Use Button' + label: 'DAGGERHEART.CONFIG.ReloadChoices.button.label' }, auto: { id: 'auto', - label: 'Automatic' + label: 'DAGGERHEART.CONFIG.ReloadChoices.auto.label' } }; \ No newline at end of file diff --git a/module/data/chat-message/actorRoll.mjs b/module/data/chat-message/actorRoll.mjs index f32a0736..7071ed1e 100644 --- a/module/data/chat-message/actorRoll.mjs +++ b/module/data/chat-message/actorRoll.mjs @@ -42,7 +42,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel { hasEffect: new fields.BooleanField({ initial: false }), hasSave: new fields.BooleanField({ initial: false }), hasTarget: new fields.BooleanField({ initial: false }), - needReload: new fields.BooleanField({ initial: false }), + needsReload: new fields.BooleanField({ initial: false }), isDirect: new fields.BooleanField({ initial: false }), onSave: new fields.StringField(), source: new fields.SchemaField({ diff --git a/templates/ui/chat/roll.hbs b/templates/ui/chat/roll.hbs index 1875a645..ab4e197e 100644 --- a/templates/ui/chat/roll.hbs +++ b/templates/ui/chat/roll.hbs @@ -2,9 +2,9 @@
{{title}}
{{#if (eq action.type 'attack')}} - {{#if needReload}} + {{#if needsReload}}
- {{#if needReload}} + {{#if needsReload}}

{{localize "DAGGERHEART.ACTIONS.Reload.reloadRequired"}}

{{/if}}