Files
l5rx-chiaroscuro/system/scripts/actors/npc-sheet.js
Vlyan 93cfe5bb86 Working on 0.8.x
-dot separator in settings
-mergeObject ns
-added a option to enable/disable custom techs
-removed "foundry-pc-types" as it was absolutely obsolete
-fixed some roll errors (_rolled -> _evaluated)
2021-04-30 17:20:34 +02:00

30 lines
712 B
JavaScript

import { BaseSheetL5r5e } from "./base-sheet.js";
/**
* NPC Sheet
*/
export class NpcSheetL5r5e extends BaseSheetL5r5e {
/**
* Sub Types
*/
static types = ["adversary", "minion"];
static get defaultOptions() {
return foundry.utils.mergeObject(super.defaultOptions, {
classes: ["l5r5e", "sheet", "npc"],
template: CONFIG.l5r5e.paths.templates + "actors/npc-sheet.html",
});
}
getData() {
const sheetData = super.getData();
sheetData.data.data.types = NpcSheetL5r5e.types.map((e) => ({
id: e,
label: game.i18n.localize("l5r5e.character_types." + e),
}));
return sheetData;
}
}