Step 4 - Hindrance on health/delirium

This commit is contained in:
2022-02-10 15:53:42 +01:00
parent f590e1fe6a
commit 0a5e52ec4e
12 changed files with 181 additions and 100 deletions

View File

@@ -68,11 +68,14 @@ export class PegasusCommands {
return this.process(command, params, content, msg);
}
/* -------------------------------------------- */
process(command, params, content, msg) {
return this._processCommand(this.commandsTable, command, params, content, msg);
}
/* -------------------------------------------- */
_processCommand(commandsTable, name, params, content = '', msg = {}, path = "") {
console.log("===> Processing command")
let command = commandsTable[name];
path = path + name + " ";
if (command && command.subTable) {