From e7898ec769c78d4fc99acc9064ac43f58bc64a32 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 16 Jan 2022 22:58:28 +0100 Subject: [PATCH] Rollable damages + protection --- module/bol.js | 4 ++-- module/system/bol-combat.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/bol.js b/module/bol.js index 6ab5f59..ad5ead6 100644 --- a/module/bol.js +++ b/module/bol.js @@ -33,9 +33,9 @@ Hooks.once('init', async function () { */ CONFIG.Combat.initiative = { formula: "2d6+@attributes.mind.value+@aptitudes.init.value", - decimals: 2 + decimals: 3 }; - 0 + // Define custom Entity classes CONFIG.Actor.documentClass = BoLActor; CONFIG.Item.documentClass = BoLItem; diff --git a/module/system/bol-combat.js b/module/system/bol-combat.js index 2334d96..9b9b6dc 100644 --- a/module/system/bol-combat.js +++ b/module/system/bol-combat.js @@ -44,7 +44,7 @@ export class BoLCombatManager extends Combat { fvttInit = 6 } } - fvttInit += (cId / 10) + fvttInit += (cId / 100) await this.updateEmbeddedDocuments("Combatant", [{ _id: ids[cId], initiative: fvttInit }]); } console.log("TODO : Compute init for actor");