mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-25 00:43:38 +02:00
[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:
parent
21ef288283
commit
cbd268ea1f
3 changed files with 16 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue