diff --git a/module.json b/module.json index 1042599..66b7fa5 100644 --- a/module.json +++ b/module.json @@ -8,7 +8,7 @@ "compatibleCoreVersion": "0.6.6", "esmodules" : ["scripts/main.js"], "styles" : ["styles/macro-config.css","styles/button-config.css"], - "systems" : ["dnd5e", "sfrpg"], + "systems" : ["dnd5e", "sfrpg", "swade"], "languages" : [ { "lang" : "en", diff --git a/scripts/itemMacro.js b/scripts/itemMacro.js index a510d7e..0043db9 100644 --- a/scripts/itemMacro.js +++ b/scripts/itemMacro.js @@ -39,7 +39,7 @@ class ItemMacro extends MacroConfig async _onExecute(event) { event.preventDefault(); await this._onSubmit(event, {preventClose: true}); - executeMacro(this.entity); // maybe change to execute only code in the command window + executeMacro(this.entity); } static _initHook(app,html,data) { @@ -288,6 +288,7 @@ export function changeButtons(app,html,data) if(flags === undefined || flags?.data.command === "") { + //case statement for different systems if(item.data.type===`spell`) { item.actor.useSpell(item); diff --git a/scripts/main.js b/scripts/main.js index 268e2dc..fe9b8a2 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -28,6 +28,7 @@ let knownSheets = { Tidy5eNPC: ".item .item-image", MonsterBlock5e: ".item .item-name", ActorSheetSFRPGCharacter : ".item .item-image", + SwadeCharacterSheet : ".item .item-image", // Sky5eSheet: ".item .item-image", };