mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Merge pull request #354 from EDCD/feature/caustic
Bug fixes introduced with caustic damage calculation
This commit is contained in:
@@ -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>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user