Improve system
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/* -------------------------------------------- */
|
||||
|
||||
import { MournbladeActorCreate } from "./mournblade-create-char.js";
|
||||
import { MournbladeUtility } from "./mournblade-utility.js";
|
||||
import { MournbladeRollDialog } from "./mournblade-roll-dialog.js";
|
||||
|
||||
@@ -8,15 +7,15 @@ import { MournbladeRollDialog } from "./mournblade-roll-dialog.js";
|
||||
export class MournbladeCommands {
|
||||
|
||||
static init() {
|
||||
if (!game.system.Mournblade.commands) {
|
||||
const MournbladeCommands = new MournbladeCommands();
|
||||
MournbladeCommands.registerCommand({ path: ["/char"], func: (content, msg, params) => MournbladeCommands.createChar(msg), descr: "Create a new character" });
|
||||
MournbladeCommands.registerCommand({ path: ["/pool"], func: (content, msg, params) => MournbladeCommands.poolRoll(msg), descr: "Generic Roll Window" });
|
||||
game.system.Mournblade.commands = MournbladeCommands;
|
||||
if (!game.system.mournblade.commands) {
|
||||
//const MournbladeCommands = new MournbladeCommands()
|
||||
//MournbladeCommands.registerCommand({ path: ["/char"], func: (content, msg, params) => MournbladeCommands.createChar(msg), descr: "Create a new character" });
|
||||
//game.system.mournblade.commands = MournbladeCommands
|
||||
}
|
||||
}
|
||||
|
||||
constructor() {
|
||||
this.commandsTable = {};
|
||||
this.commandsTable = {}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user