Show mining stats in misc column even for inactive mods/drones

This commit is contained in:
DarkPhoenix
2021-12-09 23:20:02 +03:00
parent aa7d3a1b7b
commit ae4ec99308
4 changed files with 31 additions and 28 deletions

View File

@@ -538,11 +538,11 @@ class Miscellanea(ViewColumn):
tooltip = "Optimal signature radius"
return text, tooltip
elif itemGroup in ("Frequency Mining Laser", "Strip Miner", "Mining Laser", "Gas Cloud Scoops", "Mining Drone", "Gas Cloud Harvesters"):
yps = stuff.miningYPS
yps = stuff.getMiningYPS(ignoreState=True)
if not yps:
return "", None
yph = yps * 3600
wps = stuff.miningWPS
wps = stuff.getMiningWPS(ignoreState=True)
wph = wps * 3600
textParts = []
textParts.append(formatAmount(yps, 3, 0, 3))