This commit is contained in:
WBHarry 2026-01-27 23:23:24 +01:00
parent cd184cdf01
commit b304414c08
4 changed files with 1 additions and 12 deletions

View file

@ -2467,10 +2467,6 @@
"gm": { "label": "GM" },
"players": { "label": "Players" }
},
"chatCommandAutomation": {
"label": "Chat Command Resource Automation",
"hint": "Default chat commands to grant resources such as hope and fear when possible"
},
"countdownAutomation": {
"label": "Countdown Automation",
"hint": "Automatically progress countdowns based on their progression settings"

View file

@ -18,11 +18,6 @@ export default class DhAutomation extends foundry.abstract.DataModel {
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.hopeFear.players.label'
})
}),
chatCommandAutomation: new fields.BooleanField({
required: true,
initial: false,
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.chatCommandAutomation.label'
}),
countdownAutomation: new fields.BooleanField({
required: true,
initial: true,

View file

@ -86,8 +86,7 @@ export const enrichedDualityRoll = async (
{ reaction, traitValue, target, difficulty, title, label, advantage, grantResources, customConfig },
event
) => {
const { chatCommandAutomation } = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation);
const shouldGrantResources = grantResources === undefined ? chatCommandAutomation : grantResources;
const shouldGrantResources = grantResources === undefined ? true : grantResources;
const config = {
event: event ?? {},

View file

@ -14,7 +14,6 @@
{{formGroup settingFields.schema.fields.summaryMessages.fields.effects value=settingFields._source.summaryMessages.effects localize=true}}
</div>
{{formGroup settingFields.schema.fields.chatCommandAutomation value=settingFields._source.chatCommandAutomation localize=true}}
{{formGroup settingFields.schema.fields.countdownAutomation value=settingFields._source.countdownAutomation localize=true}}
{{formGroup settingFields.schema.fields.actionPoints value=settingFields._source.actionPoints localize=true}}
{{formGroup settingFields.schema.fields.hordeDamage value=settingFields._source.hordeDamage localize=true}}