Add the ability to create custom items

This commit is contained in:
Oliver-Akins 2024-02-04 22:05:44 -07:00
parent 23dd021df6
commit 83039c6144
9 changed files with 118 additions and 4 deletions

View file

@ -0,0 +1,21 @@
import { GenericItemSheet } from "./GenericItemSheet.mjs";
export class CustomItemSheet extends GenericItemSheet {
static get defaultOptions() {
let opts = mergeObject(
super.defaultOptions,
{
template: `systems/dotdungeon/templates/items/custom.hbs`,
width: 280,
height: 340,
}
);
opts.classes.push(`dotdungeon`);
return opts;
};
async getData() {
const ctx = await super.getData();
return ctx;
};
};