standardization pass

This commit is contained in:
Vlyan
2020-12-18 16:31:03 +01:00
parent 9893ca4223
commit 003bcc1761
65 changed files with 131 additions and 149 deletions

View File

@@ -0,0 +1,27 @@
import { BaseSheetL5r5e } from "./base-sheet.js";
/**
* NPC Sheet
*/
export class NpcSheetL5r5e extends BaseSheetL5r5e {
static types = ["minion", "adversary"];
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
classes: ["l5r5e", "sheet", "npc"],
template: CONFIG.l5r5e.paths.templates + "actors/npc-sheet.html",
width: 600,
height: 800,
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }],
});
}
getData() {
const sheetData = super.getData();
sheetData.data.types = NpcSheetL5r5e.types;
return sheetData;
}
}