Finish implementing the Add Spell button

This commit is contained in:
Oliver-Akins 2024-01-09 22:24:22 -07:00
parent 1f26bbae1b
commit e5bd1e8338
5 changed files with 32 additions and 5 deletions

View file

@ -1,5 +1,10 @@
export class PlayerActor {
static createCustomSpell() {};
static createCustomSpell() {
this.createEmbeddedDocuments(
"Item",
[{ type: `spell`, name: `New Spell` }]
);
};
static async updateEmbeddedDocument($event) {
let data = $event.target.dataset;