First character sheet, wip
This commit is contained in:
@@ -4,14 +4,13 @@ import { Imperium5Utility } from "./imperium5-utility.js";
|
||||
import { Imperium5RollDialog } from "./imperium5-roll-dialog.js";
|
||||
|
||||
/* -------------------------------------------- */
|
||||
export class PegasusCommands {
|
||||
export class Imperium5Commands {
|
||||
|
||||
static init() {
|
||||
if (!game.system.pegasus.commands) {
|
||||
const pegasusCommands = new PegasusCommands();
|
||||
pegasusCommands.registerCommand({ path: ["/char"], func: (content, msg, params) => pegasusCommands.createChar(msg), descr: "Create a new character" });
|
||||
pegasusCommands.registerCommand({ path: ["/pool"], func: (content, msg, params) => pegasusCommands.poolRoll(msg), descr: "Generic Roll Window" });
|
||||
game.system.pegasus.commands = pegasusCommands;
|
||||
if (!game.system.imperium5.commands) {
|
||||
const imperium5Commands = new Imperium5Commands();
|
||||
//imperium5Commands.registerCommand({ path: ["/char"], func: (content, msg, params) => imperium5Commands.createChar(msg), descr: "Créer un personnnage" });
|
||||
game.system.imperium5.commands = imperium5Commands;
|
||||
}
|
||||
}
|
||||
constructor() {
|
||||
@@ -96,11 +95,6 @@ export class PegasusCommands {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async createChar(msg) {
|
||||
game.system.pegasus.creator = new PegasusActorCreate();
|
||||
game.system.pegasus.creator.start();
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static _chatAnswer(msg, content) {
|
||||
@@ -111,12 +105,12 @@ export class PegasusCommands {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async poolRoll( msg) {
|
||||
let rollData = PegasusUtility.getBasicRollData()
|
||||
let rollData = Imperium5Utility.getBasicRollData()
|
||||
rollData.alias = "Dice Pool Roll",
|
||||
rollData.mode = "generic"
|
||||
rollData.title = `Dice Pool Roll`;
|
||||
|
||||
let rollDialog = await PegasusRollDialog.create( this, rollData);
|
||||
let rollDialog = await Imperium5RollDialog.create( this, rollData);
|
||||
rollDialog.render( true );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user