.dungeon/module/sheets/Items/AspectSheet.mjs
2024-04-18 17:37:18 -06:00

28 lines
624 B
JavaScript

import { GenericItemSheet } from "./GenericItemSheet.mjs";
export class AspectSheet extends GenericItemSheet {
static get defaultOptions() {
let opts = foundry.utils.mergeObject(
super.defaultOptions,
{
template: `systems/dotdungeon/templates/items/aspect.hbs`,
width: 280,
height: 340,
}
);
opts.classes.push(`dotdungeon`);
return opts;
};
activateListeners(html) {
super.activateListeners(html);
if (!this.isEditable) return;
console.debug(`.dungeon | Adding event listeners for Item: ${this.id}`);
};
async getData() {
const ctx = await super.getData();
return ctx;
};
};