Fix #126 - Fix #125 weapons and stats

This commit is contained in:
sladecraven 2022-11-11 09:27:52 +01:00
parent 925a91b1ad
commit 1bf786559b

View File

@ -201,7 +201,6 @@ 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) { if( weapon.weapon.system.extradamage) {
for(let i=0; i < weapon.weapon.system.extradamagevalue; i++) { for(let i=0; i < weapon.weapon.system.extradamagevalue; i++) {
newDicePool = newDicePool.concat(this.buildDicePool("damage", 5, 0) ) newDicePool = newDicePool.concat(this.buildDicePool("damage", 5, 0) )