Rollable damages + protection

This commit is contained in:
sladecraven 2022-01-16 22:58:28 +01:00
parent 2a83ba027b
commit e7898ec769
2 changed files with 3 additions and 3 deletions

View File

@ -33,9 +33,9 @@ Hooks.once('init', async function () {
*/ */
CONFIG.Combat.initiative = { CONFIG.Combat.initiative = {
formula: "2d6+@attributes.mind.value+@aptitudes.init.value", formula: "2d6+@attributes.mind.value+@aptitudes.init.value",
decimals: 2 decimals: 3
}; };
0
// Define custom Entity classes // Define custom Entity classes
CONFIG.Actor.documentClass = BoLActor; CONFIG.Actor.documentClass = BoLActor;
CONFIG.Item.documentClass = BoLItem; CONFIG.Item.documentClass = BoLItem;

View File

@ -44,7 +44,7 @@ export class BoLCombatManager extends Combat {
fvttInit = 6 fvttInit = 6
} }
} }
fvttInit += (cId / 10) fvttInit += (cId / 100)
await this.updateEmbeddedDocuments("Combatant", [{ _id: ids[cId], initiative: fvttInit }]); await this.updateEmbeddedDocuments("Combatant", [{ _id: ids[cId], initiative: fvttInit }]);
} }
console.log("TODO : Compute init for actor"); console.log("TODO : Compute init for actor");