diff --git a/ChangeLog.md b/ChangeLog.md
index 228127e7..cb112f98 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -3,6 +3,7 @@
* Add ability to add and remove special effects to weapon modifications
* Add weapon engineering information to Damage Dealt section
* Change shortcut for link from ctrl-l to ctrl-o to avoid clash with location bar
+ * Only show one of power generation or draw in tooltips, according to module
#2.2.11
* Add help system and initial help file
diff --git a/src/app/components/InternalSlot.jsx b/src/app/components/InternalSlot.jsx
index dfc3937b..be88fceb 100644
--- a/src/app/components/InternalSlot.jsx
+++ b/src/app/components/InternalSlot.jsx
@@ -53,7 +53,7 @@ export default class InternalSlot extends Slot {
{ m.getRange() ?
{translate('range')} {formats.f2(m.getRange())}{u.km}
: null }
{ m.getRangeT() ? {translate('ranget')} {formats.f1(m.getRangeT())}{u.s}
: null }
{ m.getSpinup() ? {translate('spinup')}: {formats.f1(m.getSpinup())}{u.s}
: null }
- { m.getTime() ? {translate('time')}: {formats.int(m.getTime())}{u.s}
: null }
+ { m.getTime() ? {translate('time')}: {formats.time(m.getTime())}
: null }
{ m.maximum ? {translate('max')}: {(m.maximum)}
: null }
{ m.rangeLS ? {translate('range')}: {m.rangeLS}{u.Ls}
: null }
{ m.rangeLS === null ? ∞{u.Ls}
: null }
diff --git a/src/app/utils/SlotFunctions.js b/src/app/utils/SlotFunctions.js
index 1c064c67..feff8a5b 100644
--- a/src/app/utils/SlotFunctions.js
+++ b/src/app/utils/SlotFunctions.js
@@ -151,13 +151,15 @@ export function diffDetails(language, m, mm) {
let mmMass = mm ? mm.getMass() : 0;
if (mMass != mmMass) propDiffs.push({translate('mass')}: {diff(formats.round, mMass, mmMass)}{units.T}
);
- let mPowerGeneration = m.pgen || 0;
- let mmPowerGeneration = mm ? mm.getPowerGeneration() : 0;
- if (mPowerGeneration != mmPowerGeneration) propDiffs.push({translate('pgen')}: {diff(formats.round, mPowerGeneration, mmPowerGeneration)}{units.MJ}
);
-
- let mPowerUsage = m.power || 0;
- let mmPowerUsage = mm ? mm.getPowerUsage() : 0;
- if (mPowerUsage != mmPowerUsage) propDiffs.push({translate('power')}: {diff(formats.round, mPowerUsage, mmPowerUsage)}{units.MJ}
);
+ if (m.grp === 'pp') {
+ let mPowerGeneration = m.pgen || 0;
+ let mmPowerGeneration = mm ? mm.getPowerGeneration() : 0;
+ if (mPowerGeneration != mmPowerGeneration) propDiffs.push({translate('pgen')}: {diff(formats.round, mPowerGeneration, mmPowerGeneration)}{units.MJ}
);
+ } else {
+ let mPowerUsage = m.power || 0;
+ let mmPowerUsage = mm ? mm.getPowerUsage() : 0;
+ if (mPowerUsage != mmPowerUsage) propDiffs.push({translate('power')}: {diff(formats.round, mPowerUsage, mmPowerUsage)}{units.MJ}
);
+ }
let mDps = m.damage * (m.rpshot || 1) * (m.rof || 1) || 0;
let mmDps = mm ? mm.getDps() || 0 : 0;