diff --git a/module.json b/module.json index 13c9b05..f62f8bd 100644 --- a/module.json +++ b/module.json @@ -2,20 +2,25 @@ "id": "critic-message", "title": "Critical Message", "description": "A module that sends a message when a natural 1 or natural 20 is rolled.", - "authors": [{"name": "Yosoy-Ed"}], - "version": "0.1.0", + "authors": [ + { + "name": "Yosoy-Ed", + "flags": {} + } + ], + "version": "0.1.1", "styles": [ "styles/cm.css" ], "esmodules": [ - "scripts/cm.js","scripts/cm-classes.js" + "scripts/cm.js", + "scripts/cm-classes.js" ], - "packs": [], - "url": "https://github.com/Yosoy-Ed/critic-message", + "url": "https://github.com/Yosoy-Ed/critic-message", "manifest": "https://github.com/Yosoy-Ed/critic-message/releases/download/v0.1.1/module.json", "download": "https://github.com/Yosoy-Ed/critic-message/releases/download/v0.1.1/module.zip", "compatibility": { "minimum": "11", - "verified": "11" + "verified": "11.315" } -} +} \ No newline at end of file diff --git a/scripts/cm-functions.js b/scripts/cm-functions.js index 5b536e1..1c393a8 100644 --- a/scripts/cm-functions.js +++ b/scripts/cm-functions.js @@ -129,6 +129,8 @@ export function detectroll(chatMessage) { let d20dices = chatMessage.rolls[0].dice; let userwhorolled = chatMessage.user.name; + if (game.user.isGM) { verifyimgfolders(); + } criticalmessage(d20dices, userwhorolled); } \ No newline at end of file diff --git a/scripts/cm.js b/scripts/cm.js index 81c3234..d9d6829 100644 --- a/scripts/cm.js +++ b/scripts/cm.js @@ -245,14 +245,17 @@ Hooks.once('init', function () { }); Hooks.once('ready', function () { + + if (game.user.isGM) { verifyimgfolders(); -} -); + } +}); Hooks.on('closeSettingsConfig', function () { + if (game.user.isGM) { verifyimgfolders(); -} -); + } +}); /* To reset a variable: diff --git a/styles/cm.css b/styles/cm.css index 3acf339..6243711 100644 --- a/styles/cm.css +++ b/styles/cm.css @@ -45,7 +45,15 @@ } .chatable { + background-image: none; + background-color: transparent; border: none; border-collapse: collapse; margin: 0px; } + +.chatable tr, .chatable td { + background: none; + background-image: none; + background-color: transparent; +} \ No newline at end of file