Fix #126 - Fix #125 weapons and stats

This commit is contained in:
sladecraven 2022-11-11 08:58:00 +01:00
parent e9ac959a81
commit 925a91b1ad
1 changed files with 6 additions and 0 deletions

View File

@ -201,6 +201,12 @@ export class PegasusUtility {
for (let weapon of rollData.vehicleWeapons) {
if (weapon.applied) {
newDicePool = newDicePool.concat(this.buildDicePool("damage", weapon.value, 0))
console.log("EXTRA DAMAGE!!", weapon)
if( weapon.weapon.system.extradamage) {
for(let i=0; i < weapon.weapon.system.extradamagevalue; i++) {
newDicePool = newDicePool.concat(this.buildDicePool("damage", 5, 0) )
}
}
}
}
rollData.dicePool = newDicePool