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

@ -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 ?? {},