Working on the spells panel, which resulted in a lot of weird structural changes that aren't *really* functional yet
This commit is contained in:
parent
227029ffcd
commit
dfc51a5899
31 changed files with 499 additions and 84 deletions
|
|
@ -14,6 +14,11 @@ export class ActorHandler extends Actor {
|
|||
return this.actorTypes[this.type];
|
||||
};
|
||||
|
||||
updateEmbeddedDocument($event) {
|
||||
if (!this.fn?.updateEmbeddedDocument) return;
|
||||
this.fn.updateEmbeddedDocument.bind(this)($event);
|
||||
};
|
||||
|
||||
createCustomSpell() {
|
||||
if (!this.fn?.createCustomSpell) return;
|
||||
this.fn.createCustomSpell.bind(this)();
|
||||
|
|
|
|||
|
|
@ -7,4 +7,10 @@ export class PlayerActor {
|
|||
description: ``,
|
||||
};
|
||||
};
|
||||
|
||||
static async updateEmbeddedDocument($event) {
|
||||
let data = $event.target.dataset;
|
||||
let item = await fromUuid(data.embeddedId);
|
||||
item?.update({ [data.embeddedUpdate]: $event.target.value });
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue