Added countdown actions

This commit is contained in:
WBHarry 2025-11-17 23:02:22 +01:00
parent a146132171
commit dccb0bfa2d
16 changed files with 159 additions and 7 deletions

View file

@ -200,7 +200,8 @@ export default class DHActionConfig extends DaggerheartSheet(ApplicationV2) {
const data = this.action.toObject(),
key = event.target.closest('[data-key]').dataset.key;
if (!this.action[key]) return;
data[key].push({});
data[key].push(this.action.defaultValues[key] ?? {});
this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) });
}