Skip to content

Commit

Permalink
SWADE
Browse files Browse the repository at this point in the history
  • Loading branch information
Kekilla0 committed Sep 13, 2020
1 parent 08dc56e commit 4993ac0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion scripts/itemMacro.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand Down

0 comments on commit 4993ac0

Please sign in to comment.