mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
[Fix] 1582 - Automation Additions (#1592)
* Added an automation setting for chat command resources * Added automation settings for wether to have deathmove automation * . * Flattened automation structure
This commit is contained in:
parent
0baed9234b
commit
bb43cb57dc
8 changed files with 57 additions and 19 deletions
|
|
@ -86,6 +86,8 @@ export const enrichedDualityRoll = async (
|
|||
{ reaction, traitValue, target, difficulty, title, label, advantage, grantResources, customConfig },
|
||||
event
|
||||
) => {
|
||||
const shouldGrantResources = grantResources === undefined ? true : grantResources;
|
||||
|
||||
const config = {
|
||||
event: event ?? {},
|
||||
title: title,
|
||||
|
|
@ -94,12 +96,12 @@ export const enrichedDualityRoll = async (
|
|||
roll: {
|
||||
trait: traitValue && target ? traitValue : null,
|
||||
difficulty: difficulty,
|
||||
advantage,
|
||||
// type: reaction ? 'reaction' : null //not needed really but keeping it for troubleshooting
|
||||
advantage
|
||||
// type: reaction ? 'reaction' : null //not needed really but keeping it for troubleshooting
|
||||
},
|
||||
skips: {
|
||||
resources: !grantResources,
|
||||
triggers: !grantResources
|
||||
resources: !shouldGrantResources,
|
||||
triggers: !shouldGrantResources
|
||||
},
|
||||
type: 'trait',
|
||||
hasRoll: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue