Char - WIP

This commit is contained in:
2022-01-06 18:22:05 +01:00
parent 7a06989d87
commit a8a27d1924
34 changed files with 693 additions and 144 deletions

View File

@ -55,8 +55,7 @@ Hooks.once("init", async function () {
CONFIG.Combat.documentClass = PegasusCombat;
CONFIG.Actor.documentClass = PegasusActor;
CONFIG.Item.documentClass = PegasusItem;
CONFIG.WOTG = {
}
game.system.pegasus = { };
/* -------------------------------------------- */
// Register sheet application classes
@ -110,8 +109,11 @@ Hooks.once("ready", function () {
Hooks.on("chatMessage", (html, content, msg) => {
if (content[0] == '/') {
let regExp = /(\S+)/g;
let commands = content.toLowerCase().match(regExp);
console.log(commands);
let commands = content.match(regExp);
if (game.system.pegasus.commands.processChatCommand(commands, content, msg)) {
return false;
}
}
return true;
});