Show capacitor regen difference for selected mods

This commit is contained in:
DarkPhoenix
2019-08-21 12:11:22 +03:00
parent 1b2cd62629
commit d32ff668e1
3 changed files with 29 additions and 22 deletions

View File

@@ -444,14 +444,6 @@ class Miscellanea(ViewColumn):
text = "{0}/s".format(formatAmount(rps, 3, 0, 3, forceSign=True))
tooltip = "Structure repaired per second"
return text, tooltip
elif itemGroup in ("Capacitor Recharger", "Capacitor Power Relay", "Capacitor Battery"):
fit = Fit.getInstance().getFit(self.fittingView.getActiveFit())
capGain = fit.getCapRegenGainFromMod(stuff)
if not capGain:
return "", None
text = formatAmount(capGain, 3, 0, 3, forceSign=True)
tooltip = "Peak capacitor regeneration gain"
return text, tooltip
elif itemGroup == "Gang Coordinator":
command = stuff.getModifiedItemAttr("commandBonus") or stuff.getModifiedItemAttr("commandBonusHidden")
if not command: