fvtt-never-stop-blowing-up/kidsonbrooms.mjs

23 lines
758 B
JavaScript
Raw Permalink Normal View History

2024-10-02 14:45:44 +02:00
import * as models from "./modules/dataModel/_system.mjs";
2024-11-04 00:47:13 +01:00
import * as sheets from "./modules/sheets/_system.mjs";
2024-10-02 14:45:44 +02:00
/* -------------------------------------------- */
/* Foundry VTT Initialization */
/* -------------------------------------------- */
const SYSTEM = {
id: "kidsonbrooms",
}
Hooks.once("init", async function() {
console.log("Initialising Kids on Brooms system");
globalThis.kidsonbrooms = game.system;
game.system.CONST = SYSTEM;
2024-10-19 23:02:28 +02:00
Actors.unregisterSheet("core", ActorSheet);
2024-11-04 00:47:13 +01:00
Actors.registerSheet(SYSTEM.id, "{{sheets.BaseActorSheet}}", {types: ["PlayerCharacter"], makeDefault: true});
2024-11-24 18:59:43 +01:00
sheets.BaseActorSheet.getTemplate();
2024-11-04 00:47:13 +01:00
CONFIG.Actor.dataModels = models.playerCharacterModel;
2024-10-02 14:45:44 +02:00
})