New v5 fixes

This commit is contained in:
2022-07-21 22:52:17 +02:00
parent aa4409be28
commit e7f5a17096
6 changed files with 50 additions and 29 deletions

View File

@ -729,9 +729,6 @@ export class PegasusUtility {
let diceFormulaTab = []
for (let dice of rollData.dicePool) {
let level = dice.level
if (dice.name == "stat") {
level += rollData.statLevelBonus
}
diceFormulaTab.push(this.getFoundryDiceFromLevel(level))
}
let diceFormula = '{' + diceFormulaTab.join(', ') + '}kh + ' + (rollData.stat?.mod || 0)