2024-10-02 14:45:44 +02:00
|
|
|
import * as models from "./modules/dataModel/_system.mjs";
|
|
|
|
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
/* 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);
|
|
|
|
Actors.registerSheet(SYSTEM.id, "core", {types: ["PlayerCharacter"], makeDefault: true});
|
|
|
|
|
|
|
|
CONFIG.Actor.dataModels = {
|
|
|
|
playercharacter: models.playerCharacterModel
|
|
|
|
};
|
2024-10-02 14:45:44 +02:00
|
|
|
|
|
|
|
})
|