Enhance sheets
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user