Initial Import

This commit is contained in:
2023-01-04 22:09:09 +01:00
parent 7665fb32b5
commit 76ca542cbb
26 changed files with 265 additions and 697 deletions

View File

@@ -3,17 +3,17 @@
* @extends {ActorSheet}
*/
import { CrucibleUtility } from "./crucible-utility.js";
import { WarheroUtility } from "./warhero-utility.js";
/* -------------------------------------------- */
export class CrucibleNPCSheet extends ActorSheet {
export class WarheroNPCSheet extends ActorSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
classes: ["crucible-rpg", "sheet", "actor"],
template: "systems/fvtt-crucible-rpg/templates/npc-sheet.html",
classes: ["warhero-rpg", "sheet", "actor"],
template: "systems/fvtt-warhero/templates/npc-sheet.html",
width: 640,
height: 720,
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }],
@@ -88,7 +88,7 @@ export class CrucibleNPCSheet extends ActorSheet {
// Delete Inventory Item
html.find('.item-delete').click(ev => {
const li = $(ev.currentTarget).parents(".item")
CrucibleUtility.confirmDelete(this, li)
WarheroUtility.confirmDelete(this, li)
})
html.find('.item-add').click(ev => {
let dataType = $(ev.currentTarget).data("type")