From 8787303d2abdf707746889099c587b1913373707 Mon Sep 17 00:00:00 2001 From: willyb321 Date: Fri, 4 May 2018 08:59:57 +1000 Subject: [PATCH] add a column with what type of shield, update tooltips too --- src/app/components/ShipSummaryTable.jsx | 34 ++++++++++++++----------- src/app/i18n/en.json | 1 + 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/app/components/ShipSummaryTable.jsx b/src/app/components/ShipSummaryTable.jsx index eaff13c1..e22863c0 100644 --- a/src/app/components/ShipSummaryTable.jsx +++ b/src/app/components/ShipSummaryTable.jsx @@ -119,20 +119,22 @@ export default class ShipSummaryTable extends TranslatedComponent { - - - + + + + - - - - + + + + + @@ -146,15 +148,16 @@ export default class ShipSummaryTable extends TranslatedComponent { - - - + + + + - - - - - + + + + + @@ -162,6 +165,7 @@ export default class ShipSummaryTable extends TranslatedComponent { + diff --git a/src/app/i18n/en.json b/src/app/i18n/en.json index bf762d92..5fa7de6d 100644 --- a/src/app/i18n/en.json +++ b/src/app/i18n/en.json @@ -62,6 +62,7 @@ "TT_SUMMARY_BOOST": "With full fuel tank and 4 pips to ENG", "TT_SUMMARY_BOOST_NONFUNCTIONAL": "Power distributor not able to supply enough power to boost", "TT_SUMMARY_SHIELDS": "Raw shield strength, including boosters", + "TT_SUMMARY_SHIELDS_SCB": "Raw shield strength, including boosters and SCBs", "TT_SUMMARY_SHIELDS_NONFUNCTIONAL": "No shield generator or shield generator powered off", "TT_SUMMARY_INTEGRITY": "Ship integrity, including bulkheads and hull reinforcement packages", "TT_SUMMARY_HULL_MASS": "Mass of the hull prior to any modules being installed",
{translate('explres')}{translate('kinres')}{translate('thermres')}{translate('shield')}{translate('explres')}{translate('kinres')}{translate('thermres')}{translate('absolute') + ' ' + translate('HP')}{translate('explosive') + ' ' + translate('HP')}{translate('kinetic') + ' ' + translate('HP')}{translate('thermal') + ' ' + translate('HP')}{`${translate('absolute')} ${translate('HP')}`}{`${translate('explosive')} ${translate('HP')}`}{`${translate('kinetic')} ${translate('HP')}`}{`${translate('thermal')} ${translate('HP')}`} {translate('recovery')} {translate('recharge')}
{translate(shieldGenerator && shieldGenerator.m.grp || 'No Shield')} {int(ship.shieldExplRes * 100) + '%'} {int(ship.shieldKinRes * 100) + '%'} {int(ship.shieldThermRes * 100) + '%'}
{translate('explres')}{translate('kinres')}{translate('thermres')}{translate('armour')}{translate('explres')}{translate('kinres')}{translate('thermres')}{translate('absolute') + ' ' + translate('HP')}{translate('explosive') + ' ' + translate('HP')}{translate('kinetic') + ' ' + translate('HP')}{translate('thermal') + ' ' + translate('HP')}{translate('raw module armour')}{`${translate('absolute')} ${translate('HP')}`}{`${translate('explosive')} ${translate('HP')}`}{`${translate('kinetic')} ${translate('HP')}`}{`${translate('thermal')} ${translate('HP')}`}{translate('raw module armour')} {translate('internal protection')}
{translate(ship && ship.bulkheads && ship.bulkheads.m && ship.bulkheads.m.name || 'No Armour')} {int(ship.hullExplRes * 100) + '%'} {int(ship.hullKinRes * 100) + '%'} {int(ship.hullThermRes * 100) + '%'}