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

View File

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