mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-24 08:23:38 +02:00
Flattened automation structure
This commit is contained in:
parent
b304414c08
commit
ffc353dd16
3 changed files with 22 additions and 22 deletions
|
|
@ -164,8 +164,10 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
|
||||||
|
|
||||||
let result = '';
|
let result = '';
|
||||||
|
|
||||||
const deathMoveAutomation = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation)
|
const deathMoveAutomation = game.settings.get(
|
||||||
.deathMoves.automation;
|
CONFIG.DH.id,
|
||||||
|
CONFIG.DH.SETTINGS.gameSettings.Automation
|
||||||
|
).deathMoveAutomation;
|
||||||
if (CONFIG.DH.GENERAL.deathMoves.blazeOfGlory === this.selectedMove) {
|
if (CONFIG.DH.GENERAL.deathMoves.blazeOfGlory === this.selectedMove) {
|
||||||
result = await this.handleBlazeOfGlory(deathMoveAutomation.blazeOfGlory);
|
result = await this.handleBlazeOfGlory(deathMoveAutomation.blazeOfGlory);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,23 +55,21 @@ export default class DhAutomation extends foundry.abstract.DataModel {
|
||||||
initial: true,
|
initial: true,
|
||||||
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.resourceScrollTexts.label'
|
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.resourceScrollTexts.label'
|
||||||
}),
|
}),
|
||||||
deathMoves: new fields.SchemaField({
|
deathMoveAutomation: new fields.SchemaField({
|
||||||
automation: new fields.SchemaField({
|
avoidDeath: new fields.BooleanField({
|
||||||
avoidDeath: new fields.BooleanField({
|
required: true,
|
||||||
required: true,
|
initial: true,
|
||||||
initial: true,
|
label: 'DAGGERHEART.CONFIG.DeathMoves.avoidDeath.name'
|
||||||
label: 'DAGGERHEART.CONFIG.DeathMoves.avoidDeath.name'
|
}),
|
||||||
}),
|
riskItAll: new fields.BooleanField({
|
||||||
riskItAll: new fields.BooleanField({
|
required: true,
|
||||||
required: true,
|
initial: true,
|
||||||
initial: true,
|
label: 'DAGGERHEART.CONFIG.DeathMoves.riskItAll.name'
|
||||||
label: 'DAGGERHEART.CONFIG.DeathMoves.riskItAll.name'
|
}),
|
||||||
}),
|
blazeOfGlory: new fields.BooleanField({
|
||||||
blazeOfGlory: new fields.BooleanField({
|
required: true,
|
||||||
required: true,
|
initial: true,
|
||||||
initial: true,
|
label: 'DAGGERHEART.CONFIG.DeathMoves.blazeOfGlory.name'
|
||||||
label: 'DAGGERHEART.CONFIG.DeathMoves.blazeOfGlory.name'
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
defeated: new fields.SchemaField({
|
defeated: new fields.SchemaField({
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
{{localize "DAGGERHEART.GENERAL.automation"}}
|
{{localize "DAGGERHEART.GENERAL.automation"}}
|
||||||
</legend>
|
</legend>
|
||||||
|
|
||||||
{{formGroup settingFields.schema.fields.deathMoves.fields.automation.fields.avoidDeath value=settingFields._source.deathMoves.automation.avoidDeath localize=true}}
|
{{formGroup settingFields.schema.fields.deathMoveAutomation.fields.avoidDeath value=settingFields._source.deathMoveAutomation.avoidDeath localize=true}}
|
||||||
{{formGroup settingFields.schema.fields.deathMoves.fields.automation.fields.riskItAll value=settingFields._source.deathMoves.automation.riskItAll localize=true}}
|
{{formGroup settingFields.schema.fields.deathMoveAutomation.fields.riskItAll value=settingFields._source.deathMoveAutomation.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.blazeOfGlory value=settingFields._source.deathMoveAutomation.blazeOfGlory localize=true}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>
|
<legend>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue