[Feature] DR Command Resources (#1572)

* Dr chatcommand and buttons now grant resources via automation by default. Optionally turned off via parameter noResources=true

* .
This commit is contained in:
WBHarry 2026-01-24 11:10:30 +01:00 committed by GitHub
parent 21ef288283
commit cbd268ea1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 6 deletions

View file

@ -296,6 +296,7 @@ Hooks.on('chatMessage', (_, message) => {
? CONFIG.DH.ACTIONS.advantageState.disadvantage.value
: undefined;
const difficulty = rollCommand.difficulty;
const grantResources = Boolean(rollCommand.grantResources);
const target = getCommandTarget({ allowNull: true });
const title = traitValue
@ -312,7 +313,8 @@ Hooks.on('chatMessage', (_, message) => {
title,
label: game.i18n.localize('DAGGERHEART.GENERAL.dualityRoll'),
actionType: null,
advantage
advantage,
grantResources
});
return false;
}