Add dmg roll for powers

This commit is contained in:
2022-02-25 14:53:19 +01:00
parent 7ff89c34b8
commit 1ea1b3b1a8
11 changed files with 59 additions and 61 deletions

View File

@ -982,9 +982,18 @@ export class PegasusActor extends Actor {
}
/* -------------------------------------------- */
powerDmgRoll( itemId) {
let power = this.data.items.get(itemId)
if (power ) {
power = duplicate(power)
this.rollPool( power.data.dmgstatistic )
}
}
/* -------------------------------------------- */
rollPool(statKey, useShield = false) {
let stat = this.getStat(statKey);
let stat = this.getStat(statKey)
if (stat) {
let rollData = this.getCommonRollData(statKey, useShield)
rollData.mode = "stat"
@ -998,7 +1007,7 @@ export class PegasusActor extends Actor {
/* -------------------------------------------- */
rollUnarmedAttack() {
let stat = this.getStat('com');
let stat = this.getStat('com')
if (stat) {
let rollData = this.getCommonRollData(statKey)
rollData.mode = "stat"