diff --git a/module/applications/dialogs/deathMove.mjs b/module/applications/dialogs/deathMove.mjs index e10fe46b..a9141158 100644 --- a/module/applications/dialogs/deathMove.mjs +++ b/module/applications/dialogs/deathMove.mjs @@ -164,8 +164,10 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV let result = ''; - const deathMoveAutomation = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation) - .deathMoves.automation; + const deathMoveAutomation = game.settings.get( + CONFIG.DH.id, + CONFIG.DH.SETTINGS.gameSettings.Automation + ).deathMoveAutomation; if (CONFIG.DH.GENERAL.deathMoves.blazeOfGlory === this.selectedMove) { result = await this.handleBlazeOfGlory(deathMoveAutomation.blazeOfGlory); } diff --git a/module/data/settings/Automation.mjs b/module/data/settings/Automation.mjs index de552bb5..e9952b1c 100644 --- a/module/data/settings/Automation.mjs +++ b/module/data/settings/Automation.mjs @@ -55,23 +55,21 @@ export default class DhAutomation extends foundry.abstract.DataModel { initial: true, label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.resourceScrollTexts.label' }), - deathMoves: new fields.SchemaField({ - automation: new fields.SchemaField({ - avoidDeath: new fields.BooleanField({ - required: true, - initial: true, - label: 'DAGGERHEART.CONFIG.DeathMoves.avoidDeath.name' - }), - riskItAll: new fields.BooleanField({ - required: true, - initial: true, - label: 'DAGGERHEART.CONFIG.DeathMoves.riskItAll.name' - }), - blazeOfGlory: new fields.BooleanField({ - required: true, - initial: true, - label: 'DAGGERHEART.CONFIG.DeathMoves.blazeOfGlory.name' - }) + deathMoveAutomation: new fields.SchemaField({ + avoidDeath: new fields.BooleanField({ + required: true, + initial: true, + label: 'DAGGERHEART.CONFIG.DeathMoves.avoidDeath.name' + }), + riskItAll: new fields.BooleanField({ + required: true, + initial: true, + label: 'DAGGERHEART.CONFIG.DeathMoves.riskItAll.name' + }), + blazeOfGlory: new fields.BooleanField({ + required: true, + initial: true, + label: 'DAGGERHEART.CONFIG.DeathMoves.blazeOfGlory.name' }) }), defeated: new fields.SchemaField({ diff --git a/templates/settings/automation-settings/deathMoves.hbs b/templates/settings/automation-settings/deathMoves.hbs index 59cbcdbd..f19a92da 100644 --- a/templates/settings/automation-settings/deathMoves.hbs +++ b/templates/settings/automation-settings/deathMoves.hbs @@ -8,9 +8,9 @@ {{localize "DAGGERHEART.GENERAL.automation"}} - {{formGroup settingFields.schema.fields.deathMoves.fields.automation.fields.avoidDeath value=settingFields._source.deathMoves.automation.avoidDeath localize=true}} - {{formGroup settingFields.schema.fields.deathMoves.fields.automation.fields.riskItAll value=settingFields._source.deathMoves.automation.riskItAll localize=true}} - {{formGroup settingFields.schema.fields.deathMoves.fields.automation.fields.blazeOfGlory value=settingFields._source.deathMoves.automation.blazeOfGlory localize=true}} + {{formGroup settingFields.schema.fields.deathMoveAutomation.fields.avoidDeath value=settingFields._source.deathMoveAutomation.avoidDeath localize=true}} + {{formGroup settingFields.schema.fields.deathMoveAutomation.fields.riskItAll value=settingFields._source.deathMoveAutomation.riskItAll localize=true}} + {{formGroup settingFields.schema.fields.deathMoveAutomation.fields.blazeOfGlory value=settingFields._source.deathMoveAutomation.blazeOfGlory localize=true}}