HERO6 - First import
This commit is contained in:
@ -10,11 +10,11 @@ const __saveFirstToKey = { r: "reflex", f: "fortitude", w: "willpower"}
|
||||
export class Hero6Commands {
|
||||
|
||||
static init() {
|
||||
if (!game.system.Hero6.commands) {
|
||||
const Hero6Commands = new Hero6Commands();
|
||||
Hero6Commands.registerCommand({ path: ["/rtarget"], func: (content, msg, params) => Hero6Commands.rollTarget(msg, params), descr: "Launch the target roll window" });
|
||||
Hero6Commands.registerCommand({ path: ["/rsave"], func: (content, msg, params) => Hero6Commands.rollSave(msg, params), descr: "Performs a save roll" });
|
||||
game.system.Hero6.commands = Hero6Commands;
|
||||
if (!game.system.hero6.commands) {
|
||||
const hero6Commands = new Hero6Commands();
|
||||
hero6Commands.registerCommand({ path: ["/rtarget"], func: (content, msg, params) => Hero6Commands.rollTarget(msg, params), descr: "Launch the target roll window" });
|
||||
hero6Commands.registerCommand({ path: ["/rsave"], func: (content, msg, params) => Hero6Commands.rollSave(msg, params), descr: "Performs a save roll" });
|
||||
game.system.hero6.commands = hero6Commands;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user