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

View File

@ -201,6 +201,12 @@ export class PegasusUtility {
for (let weapon of rollData.vehicleWeapons) { for (let weapon of rollData.vehicleWeapons) {
if (weapon.applied) { if (weapon.applied) {
newDicePool = newDicePool.concat(this.buildDicePool("damage", weapon.value, 0)) 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 rollData.dicePool = newDicePool