Add the ability to automate items and attributes using a Macro

This commit is contained in:
Oliver 2026-04-27 00:51:31 -06:00
parent 47892d116b
commit 8f67bff2ec
8 changed files with 45 additions and 2 deletions

View file

@ -23,6 +23,11 @@ export class AttributeItemData extends foundry.abstract.TypeDataModel {
aboveTheFold: new fields.BooleanField({
initial: false,
}),
trigger: new fields.DocumentUUIDField({
embedded: false,
relative: false,
type: foundry.documents.Macro.documentName,
}),
/* The attributes current value */
value: new fields.NumberField({

View file

@ -22,6 +22,11 @@ export class GenericItemData extends foundry.abstract.TypeDataModel {
equipped: new fields.BooleanField({
initial: true,
}),
trigger: new fields.DocumentUUIDField({
embedded: false,
relative: false,
type: foundry.documents.Macro.documentName,
}),
description: new fields.HTMLField({
blank: true,
trim: true,