Files
DeltaGreen2/module/sheets/npc-sheet.js
T
tevansandClaude Fable 5 7c29335b0d Baseline: Delta Green official system v1.7.0 (MIT, TheLastScrub)
Pristine copy of the installed deltagreen 1.7.0 release build.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 17:22:41 +01:00

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;
}
}