Add rest dice tracking for the Sync actors

This commit is contained in:
Oliver-Akins 2024-02-08 23:25:55 -07:00
parent 4544516c5c
commit 1002b1387c
8 changed files with 186 additions and 24 deletions

View file

@ -6,7 +6,7 @@ export class AbstractSyncSheet extends GenericActorSheet {
super.defaultOptions,
{
width: 200,
height: 200,
height: 275,
}
);
opts.classes.push(
@ -22,11 +22,12 @@ export class AbstractSyncSheet extends GenericActorSheet {
ctx.system = actor.system;
ctx.flags = actor.flags;
console.groupCollapsed(`SyncSheet.getData`);
console.log(`ctx`, ctx);
console.log(`actor`, actor);
console.groupEnd();
return ctx;
};
activateListeners(html) {
super.activateListeners(html);
html.find(`.use-rest-die`)
.on(`click`, this.actor.useRestDie.bind(this.actor));
};
};