Initiative from PHASE OK

This commit is contained in:
2021-02-04 08:38:59 +01:00
parent d248411e90
commit 63e552cc6a
6 changed files with 71 additions and 30 deletions

View File

@ -18,16 +18,6 @@ import { SoSCombat } from "./sos-combat.js";
/* Foundry VTT Initialization */
/* -------------------------------------------- */
/************************************************************************************/
const _patch_initiative = () => {
Combat.prototype.rollInitiative = async function (
ids,
formula = undefined,
messageOptions = {}
) {
}
}
/************************************************************************************/
Hooks.once("init", async function () {
console.log(`Initializing Shadows over Sol System`);
@ -40,7 +30,7 @@ Hooks.once("init", async function () {
/* -------------------------------------------- */
// Set an initiative formula for the system
CONFIG.Combat.initiative = {
formula: "1+(1d6/10)",
formula: "1d3",
decimals: 2
};
@ -68,9 +58,6 @@ Hooks.once("init", async function () {
SoSUtility.registerChatCallbacks(html);
});
// Patch the initiative formula
_patch_initiative();
});
/* -------------------------------------------- */