44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
import DGActorSheet from "./base-actor-sheet.js";
|
|
|
|
/** @extends {DGActorSheet} */
|
|
export default class DGNPCSheet extends DGActorSheet {
|
|
/** @override */
|
|
static TABS = /** @type {const} */ ({
|
|
primary: {
|
|
initial: "skills",
|
|
labelPrefix: "DG.Navigation.NPC",
|
|
tabs: [
|
|
{ id: "skills" },
|
|
{ id: "gear" },
|
|
{ id: "about", icon: "fas fa-question-circle", label: "" },
|
|
],
|
|
},
|
|
});
|
|
|
|
/** @override */
|
|
static PARTS = /** @type {const} */ ({
|
|
header: this.BASE_PARTS.header,
|
|
statistics: {
|
|
template: `${this.TEMPLATE_PATH}/partials/attributes-grid-partial.html`,
|
|
},
|
|
tabs: this.BASE_PARTS.tabs,
|
|
skills: this.BASE_PARTS.skills,
|
|
gear: this.BASE_PARTS.gear,
|
|
about: this.BASE_PARTS.about,
|
|
});
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
/** @override */
|
|
async _prepareContext(options) {
|
|
const context = await super._prepareContext(options);
|
|
|
|
// Override physical attribute title.
|
|
context.physicalAttributesTitle = game.i18n.localize(
|
|
"DG.Sheet.BlockHeaders.Statistics",
|
|
);
|
|
|
|
return context;
|
|
}
|
|
}
|