diff --git a/src/app/components/ShipSummaryTable.jsx b/src/app/components/ShipSummaryTable.jsx index 74ffe4ef..a98ad465 100644 --- a/src/app/components/ShipSummaryTable.jsx +++ b/src/app/components/ShipSummaryTable.jsx @@ -160,10 +160,10 @@ export default class ShipSummaryTable extends TranslatedComponent { {formats.pct1(ship.shieldThermRes)} - {int(ship && ship.shield > 0 ? ship.shield : 0)}{u.MJ} - {int(ship && ship.shield > 0 ? ship.shield * ((1 / (1 - (ship.shieldExplRes)))) : 0)}{u.MJ} - {int(ship && ship.shield > 0 ? ship.shield * ((1 / (1 - (ship.shieldKinRes)))) : 0)}{u.MJ} - {int(ship && ship.shield > 0 ? ship.shield * ((1 / (1 - (ship.shieldThermRes)))) : 0)}{u.MJ} + {int(ship && sgMetrics.summary > 0 ? sgMetrics.summary : 0)}{u.MJ} + {int(ship && sgMetrics.summary > 0 ? sgMetrics.summary / sgMetrics.explosive.base : 0)}{u.MJ} + {int(ship && sgMetrics.summary ? sgMetrics.summary / sgMetrics.kinetic.base : 0)}{u.MJ} + {int(ship && sgMetrics.summary ? sgMetrics.summary / sgMetrics.thermal.base : 0)}{u.MJ} {sgMetrics && sgMetrics.recover === Math.Inf ? translate('Never') : formats.time(sgMetrics.recover)} {sgMetrics && sgMetrics.recharge === Math.Inf ? translate('Never') : formats.time(sgMetrics.recharge)} @@ -198,11 +198,11 @@ export default class ShipSummaryTable extends TranslatedComponent { {formats.pct1(ship.hullKinRes)} {formats.pct1(ship.hullThermRes)} {formats.pct1(ship.hullCausRes)} - {int(ship.armour)} - {int(ship.armour * ((1 / (1 - (ship.hullExplRes)))))} - {int(ship.armour * ((1 / (1 - (ship.hullKinRes)))))} - {int(ship.armour * ((1 / (1 - (ship.hullThermRes)))))} - {int(ship.armour * ((1 / (1 - (ship.hullCausRes)))))} + {int(armourMetrics.total)} + {int(armourMetrics.total / armourMetrics.explosive.total)} + {int(armourMetrics.total/ armourMetrics.kinetic.total)} + {int(armourMetrics.total / armourMetrics.thermal.total)} + {int(armourMetrics.total/ armourMetrics.caustic.total)} {int(armourMetrics.modulearmour)} {int(armourMetrics.moduleprotection * 100) + '%'} diff --git a/src/app/shipyard/Calculations.js b/src/app/shipyard/Calculations.js index 8159fcac..e0f396c3 100644 --- a/src/app/shipyard/Calculations.js +++ b/src/app/shipyard/Calculations.js @@ -465,6 +465,7 @@ export function shieldMetrics(ship, sys) { boosters: boostersStrength, addition: shieldAddition, cells: ship.shieldCells, + summary: generatorStrength + boostersStrength + shieldAddition, total: generatorStrength + boostersStrength + ship.shieldCells + shieldAddition, recover, recharge,