fvtt-never-stop-blowing-up/modules/sheets/actor-sheet.mjs
Joscha Maier dd42e5487c
a
2024-11-04 00:47:13 +01:00

31 lines
664 B
JavaScript

const {api, sheets} = foundry.applications;
export default class BaseActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorSheetV2) {
/** @override */
static get defaultOptions()
{
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["kidsonbrooms", "sheet", "actor"],
width: 800,
height: 800,
tabs: [{}]
});
}
/** @override */
get template()
{
console.log("template", this.actor)
return `systems/kidsonbrooms/templates/actor/actor-sheet-{$this.actor.type}.html`;
}
async getData()
{
const context = super.getData();
console.log(context);
return context;
}
}