diff --git a/modules/hawkmoon-main.js b/modules/hawkmoon-main.js index b1fccc4..2a57de8 100644 --- a/modules/hawkmoon-main.js +++ b/modules/hawkmoon-main.js @@ -14,6 +14,7 @@ import { HawkmoonActorSheet } from "./hawkmoon-actor-sheet.js"; import { HawkmoonUtility } from "./hawkmoon-utility.js"; import { HawkmoonCombat } from "./hawkmoon-combat.js"; import { HawkmoonItem } from "./hawkmoon-item.js"; +import { HawkmoonEffectParser } from "./hawkmoon-effect-parser.js"; /* -------------------------------------------- */ /* Foundry VTT Initialization */ @@ -25,7 +26,7 @@ Hooks.once("init", async function () { /* -------------------------------------------- */ // preload handlebars templates - HawkmoonUtility.preloadHandlebarsTemplates(); + HawkmoonUtility.preloadHandlebarsTemplates() /* -------------------------------------------- */ // Set an initiative formula for the system @@ -36,7 +37,7 @@ Hooks.once("init", async function () { /* -------------------------------------------- */ game.socket.on("system.fvtt-hawkmoon-cyd", data => { - HawkmoonUtility.onSocketMesssage(data); + HawkmoonUtility.onSocketMesssage(data) }); /* -------------------------------------------- */ @@ -45,7 +46,8 @@ Hooks.once("init", async function () { CONFIG.Actor.documentClass = HawkmoonActor CONFIG.Item.documentClass = HawkmoonItem game.system.hawkmoon = { - HawkmoonUtility + HawkmoonUtility, + HawkmoonEffectParser } /* -------------------------------------------- */ @@ -57,7 +59,8 @@ Hooks.once("init", async function () { Items.unregisterSheet("core", ItemSheet); Items.registerSheet("fvtt-hawkmoon-cyd", HawkmoonItemSheet, { makeDefault: true }) - HawkmoonUtility.init(); + HawkmoonUtility.init() + HawkmoonEffectParser.init() }); diff --git a/template.json b/template.json index d9a7cde..ecc7490 100644 --- a/template.json +++ b/template.json @@ -121,7 +121,7 @@ "equipement", "artefact" ], - "talents": { + "talent": { "utilisation": "", "prerequis": "", "isbonus": false, diff --git a/templates/item-talent-sheet.html b/templates/item-talent-sheet.html index 68fa658..501802f 100644 --- a/templates/item-talent-sheet.html +++ b/templates/item-talent-sheet.html @@ -16,11 +16,11 @@