Add new compendiums

This commit is contained in:
2022-07-30 22:54:08 +02:00
parent 43eb8ee09b
commit 3957a6aa9f
27 changed files with 288 additions and 133 deletions

View File

@@ -265,7 +265,13 @@ export class CrucibleUtility {
let diceFormula = String(rollData.ability.value) + "d6cs>=5"
if (rollData.skill) {
diceFormula += "+" + String(rollData.skill.data.level) + "d8cs>=5"
let level = rollData.skill.data.level
if (rollData.featSLName != "none") {
let feat = rollData.featsSL.find(item => item.name == rollData.featSLName )
level += feat.data.sl
rollData.featSL = feat.data.sl
}
diceFormula += "+" + String(level) + "d8cs>=5"
}
if(rollData.advantage == "advantage") {
diceFormula += "+ 1d10cs>=5"
@@ -273,6 +279,9 @@ export class CrucibleUtility {
if(rollData.advantage == "disadvantage") {
diceFormula += "- 1d10cs>=5"
}
if (rollData.featDieName != "none") {
diceFormula += "+ 1d10cs>=5"
}
// Performs roll
let myRoll = rollData.roll
if (!myRoll) { // New rolls only of no rerolls