import MaleficesActorSheet from "./malefices-base-actor-sheet.mjs" export default class MaleficesNPCActorSheet extends MaleficesActorSheet { /** @override */ static DEFAULT_OPTIONS = { classes: ["pnj"], position: { width: 560, height: 460 }, } /** @override */ static PARTS = { main: { template: "systems/fvtt-malefices/templates/actors/npc-sheet.hbs" }, } /** @override */ tabGroups = { primary: "main" } /** @override */ async _prepareContext() { const context = await super._prepareContext() context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML( this.document.system.description ?? "", { async: true } ) return context } }