[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:
WBHarry 2026-01-28 08:47:02 +01:00 committed by GitHub
parent 0baed9234b
commit bb43cb57dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 57 additions and 19 deletions

View file

@ -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,