From 9e012c14908a57758f954654a414bdd03ceef189 Mon Sep 17 00:00:00 2001 From: Stephen Marsh Date: Wed, 11 Aug 2021 10:15:23 -0400 Subject: [PATCH] Fix DPE calculations on offense tab --- src/app/shipyard/Calculations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/shipyard/Calculations.js b/src/app/shipyard/Calculations.js index 0b9873ff..6fcde9f8 100644 --- a/src/app/shipyard/Calculations.js +++ b/src/app/shipyard/Calculations.js @@ -918,8 +918,8 @@ export function _weaponSustainedDps(m, opponent, opponentShields, opponentArmour weapon.effectiveness.shields.total = weapon.effectiveness.shields.range * weapon.effectiveness.shields.sys * weapon.effectiveness.shields.resistance; weapon.effectiveness.armour.total = weapon.effectiveness.armour.range * weapon.effectiveness.armour.resistance * weapon.effectiveness.armour.hardness; - weapon.effectiveness.shields.dpe = weapon.damage.shields.total / m.getEps(); - weapon.effectiveness.armour.dpe = weapon.damage.armour.total / m.getEps(); + weapon.effectiveness.shields.dpe = weapon.damage.shields.total / m.getEps() / m.getSustainedFactor(); + weapon.effectiveness.armour.dpe = weapon.damage.armour.total / m.getEps() / m.getSustainedFactor(); return weapon;