WIP Hero 6

This commit is contained in:
2023-03-21 14:01:27 +01:00
parent 4d3f067bf9
commit d399b29d84
13 changed files with 256 additions and 134 deletions

View File

@@ -298,7 +298,7 @@ export class Hero6Utility {
let actor = game.actors.get(rollData.actorId)
// ability/save/size => 0
let diceFormula = "3d6+" + rollData.bonusMalus
let diceFormula = "3d6"
let target = 10
if (rollData.charac) {
target = rollData.charac.roll
@@ -306,7 +306,8 @@ export class Hero6Utility {
if (rollData.item) {
target = rollData.item.roll || rollData.item.system.roll
}
target += rollData.bonusMalus
// Performs roll
console.log("Roll formula", diceFormula)
let myRoll = rollData.roll