Enhance sheets

This commit is contained in:
2021-02-03 15:33:07 +01:00
parent c65f1b8246
commit d248411e90
10 changed files with 276 additions and 13 deletions

View File

@ -12,6 +12,7 @@ import { SoSActor } from "./actor.js";
import { SoSItemSheet } from "./item-sheet.js";
import { SoSActorSheet } from "./actor-sheet.js";
import { SoSUtility } from "./sos-utility.js";
import { SoSCombat } from "./sos-combat.js";
/* -------------------------------------------- */
/* Foundry VTT Initialization */
@ -51,6 +52,7 @@ Hooks.once("init", async function () {
/* -------------------------------------------- */
// Define custom Entity classes
CONFIG.Actor.entityClass = SoSActor;
CONFIG.Combat.entityClass = SoSCombat;
CONFIG.SoS = {
}
@ -61,6 +63,11 @@ Hooks.once("init", async function () {
Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("foundryvtt-shadows-over-sol", SoSItemSheet, { makeDefault: true });
// Init/registers
Hooks.on('renderChatLog', (log, html, data) => {
SoSUtility.registerChatCallbacks(html);
});
// Patch the initiative formula
_patch_initiative();