Add new compendiums
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user