31 lines
732 B
JavaScript
31 lines
732 B
JavaScript
import OathHammerItemSheet from "./base-item-sheet.mjs"
|
|
|
|
export default class OathHammerClassSheet extends OathHammerItemSheet {
|
|
/** @override */
|
|
static DEFAULT_OPTIONS = {
|
|
classes: ["class"],
|
|
position: {
|
|
width: 640,
|
|
},
|
|
window: {
|
|
contentClasses: ["class-content"],
|
|
},
|
|
}
|
|
|
|
/** @override */
|
|
static PARTS = {
|
|
main: {
|
|
template: "systems/fvtt-oath-hammer/templates/item/class-sheet.hbs",
|
|
},
|
|
}
|
|
|
|
/** @override */
|
|
async _prepareContext() {
|
|
const context = await super._prepareContext()
|
|
context.enrichedFeatures = await foundry.applications.ux.TextEditor.implementation.enrichHTML(
|
|
this.document.system.features ?? "", { async: true }
|
|
)
|
|
return context
|
|
}
|
|
}
|