From d8ac185b4d9802ab9935c92114a89fde14d98bde Mon Sep 17 00:00:00 2001 From: Cmdr McDonald Date: Mon, 27 Mar 2017 11:04:17 +0100 Subject: [PATCH] Add optimal multiplier to thrusters --- src/app/components/StandardSlot.jsx | 1 + src/app/utils/BlueprintFunctions.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/components/StandardSlot.jsx b/src/app/components/StandardSlot.jsx index eabaa353..76915c98 100644 --- a/src/app/components/StandardSlot.jsx +++ b/src/app/components/StandardSlot.jsx @@ -100,6 +100,7 @@ export default class StandardSlot extends TranslatedComponent { { m.getMinMass() ?
{translate('minimum mass')}: {formats.int(m.getMinMass())}{units.T}
: null } { m.getOptMass() ?
{translate('optimal mass')}: {formats.int(m.getOptMass())}{units.T}
: null } { m.getMaxMass() ?
{translate('max mass')}: {formats.int(m.getMaxMass())}{units.T}
: null } + { m.getOptMul() ?
{translate('optimal multiplier')}: {formats.rPct(m.getOptMul())}
: null } { m.getRange() ?
{translate('range', m.grp)}: {formats.f2(m.getRange())}{units.km}
: null } { m.time ?
{translate('time')}: {formats.time(m.time)}
: null } { m.getThermalEfficiency() ?
{translate('efficiency')}: {formats.f2(m.getThermalEfficiency())}
: null } diff --git a/src/app/utils/BlueprintFunctions.js b/src/app/utils/BlueprintFunctions.js index ef2dde0b..4175aee6 100644 --- a/src/app/utils/BlueprintFunctions.js +++ b/src/app/utils/BlueprintFunctions.js @@ -36,7 +36,7 @@ export function blueprintTooltip(translate, blueprint, engineers, m) { current = Math.round(current / 10) / 10; } else if (featureDef.type === 'numeric') { current /= 100; - } + } const currentIsBeneficial = isValueBeneficial(feature, current); effects.push( @@ -74,7 +74,7 @@ export function blueprintTooltip(translate, blueprint, engineers, m) { current = Math.round(current / 10) / 10; } else if (featureDef.type === 'numeric') { current /= 100; - } + } const currentIsBeneficial = isValueBeneficial(feature, current); effects.push(