[PR] Adding the ability to target downtime actions. (#1475)

* Adding the ability to target downtime actions.

* No longer using an arbitrary 100 healing. Changing the action's parent
This commit is contained in:
Nick Salyzyn 2025-12-29 13:55:13 -07:00 committed by GitHub
parent e8c541c002
commit 3b7b6258a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 69 additions and 16 deletions

View file

@ -33,7 +33,8 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
initial: 'action',
nullable: false,
required: true
})
}),
targetUuid: new fields.StringField({ initial: undefined })
};
this.extraSchemas.forEach(s => {
@ -241,7 +242,8 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
selectedRollMode: game.settings.get('core', 'rollMode'),
data: this.getRollData(),
evaluate: this.hasRoll,
resourceUpdates: new ResourceUpdateMap(this.actor)
resourceUpdates: new ResourceUpdateMap(this.actor),
targetUuid: this.targetUuid
};
DHBaseAction.applyKeybindings(config);