diff --git a/src/app/components/Offence.jsx b/src/app/components/Offence.jsx
index a21ba490..092cce6f 100644
--- a/src/app/components/Offence.jsx
+++ b/src/app/components/Offence.jsx
@@ -243,8 +243,13 @@ export default class Offence extends TranslatedComponent {
{formats.f1(weapon.sdps.base.total)} |
{formats.f1(weapon.sdps.shields.total)} |
{formats.pct1(weapon.effectiveness.shields.total)} |
+
+ {formats.f1(weapon.effectiveness.shields.dpe)} |
+
{formats.f1(weapon.sdps.armour.total)} |
{formats.pct1(weapon.effectiveness.armour.total)} |
+
+ {formats.f1(weapon.effectiveness.armour.dpe)} |
);
}
@@ -271,15 +276,20 @@ export default class Offence extends TranslatedComponent {
| {translate('weapon')} |
{translate('overall')} |
- {translate('opponent\'s shields')} |
- {translate('opponent\'s armour')} |
+ {translate('opponent\'s shields')} |
+ {translate('opponent\'s armour')} |
| {'sdps'} |
{'sdps'} |
{'eft'} |
+
+ {'dpe'} |
+
{'sdps'} |
{'eft'} |
+
+ {'dpe'} |
@@ -290,8 +300,10 @@ export default class Offence extends TranslatedComponent {
={formats.f1(totalSDps)} |
={formats.f1(totalShieldsSDps)} |
|
+ |
={formats.f1(totalArmourSDps)} |
|
+ |
}
diff --git a/src/app/shipyard/Calculations.js b/src/app/shipyard/Calculations.js
index 83718991..014ca487 100644
--- a/src/app/shipyard/Calculations.js
+++ b/src/app/shipyard/Calculations.js
@@ -904,12 +904,14 @@ export function _weaponSustainedDps(m, opponent, opponentShields, opponentArmour
shields: {
range: 1,
sys: opponentHasShields ? opponentShields.absolute.sys : 1,
- resistance: 1
+ resistance: 1,
+ dpe: 1
},
armour: {
range: 1,
hardness: 1,
- resistance: 1
+ resistance: 1,
+ dpe: 1
}
}
};
@@ -969,11 +971,20 @@ export function _weaponSustainedDps(m, opponent, opponentShields, opponentArmour
weapon.damage.shields.total = weapon.damage.shields.absolute + weapon.damage.shields.explosive + weapon.damage.shields.kinetic + weapon.damage.shields.thermal;
weapon.damage.armour.total = weapon.damage.armour.absolute + weapon.damage.armour.explosive + weapon.damage.armour.kinetic + weapon.damage.armour.thermal;
+
+
weapon.effectiveness.shields.resistance *= shieldsResistance;
weapon.effectiveness.armour.resistance *= armourResistance;
+
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();
+ console.log(weapon.damage.shields.dpe);
+
+
return weapon;
}