diff --git a/src/app/utils/SlotFunctions.js b/src/app/utils/SlotFunctions.js index 91f679b8..3063b592 100644 --- a/src/app/utils/SlotFunctions.js +++ b/src/app/utils/SlotFunctions.js @@ -2,6 +2,7 @@ import React from 'react'; import cn from 'classnames'; import { isShieldGenerator } from '../shipyard/ModuleUtils'; import { Infinite } from '../components/SvgIcons'; +import Persist from '../stores/Persist'; /** * Determine if a slot can mount a module of a particular class and group @@ -206,7 +207,7 @@ export function diffDetails(language, m, mm) { let mAffectsShield = isShieldGenerator(m.grp) || m.grp == 'sb'; let mmAffectsShield = isShieldGenerator(mm.grp) || mm.grp == 'sb'; - propDiffs.push(
{translate('cost')}: {formats.int(m.cost || 0)}{units.CR}
); + propDiffs.push(
{translate('cost')}: {m.cost ? Math.round(m.cost * (1 - Persist.getModuleDiscount())) : 0}{units.CR}
); propDiffs.push(
{translate('mass')}: {diff(formats.round, mMass, mmMass)}{units.T}
); for (let p in m) {