Merge pull request #354 from EDCD/feature/caustic

Bug fixes introduced with caustic damage calculation
This commit is contained in:
William
2018-08-30 08:20:01 +10:00
committed by GitHub
2 changed files with 139 additions and 138 deletions

View File

@@ -63,6 +63,7 @@ export default class ShipSummaryTable extends TranslatedComponent {
shieldColour
};
return <div id='summary'>
<div style={{display: "table", width: "100%"}}>
<div style={{display: "table-row"}}>
<table className={'summaryTable'}>
<thead>
@@ -205,7 +206,7 @@ export default class ShipSummaryTable extends TranslatedComponent {
</tbody>
</table>
</div>
</div>
</div>;
}
}

View File

@@ -659,7 +659,7 @@ export function armourMetrics(ship) {
let armourCausDmg = diminishDamageMult(0.7, 1 - ship.bulkheads.m.getCausticResistance());
let armourReinforcedCausDmg = diminishDamageMult(0.7, (1 - ship.bulkheads.m.getCausticResistance()) * hullCausDmg);
armour.caustic = {
bulkeads: armourCausDmg,
bulkheads: armourCausDmg,
reinforcement: armourReinforcedCausDmg / armourCausDmg,
total: armourReinforcedCausDmg,
res: 1 - armourReinforcedCausDmg,