Char - WIP
This commit is contained in:
@ -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;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user