Show spoolup part before damage distribution

This commit is contained in:
DarkPhoenix
2019-12-03 16:31:21 +03:00
parent c045ed81c1
commit 1900216d36

View File

@@ -160,15 +160,15 @@ class FirepowerViewFull(StatsView):
if normal is None or preSpool is None or fullSpool is None:
return ""
lines = []
if hasSpoolUp(preSpool, fullSpool):
lines.append("Spool up: {}-{}".format(
formatAmount(preSpool.total, prec, lowest, highest),
formatAmount(fullSpool.total, prec, lowest, highest)))
if getattr(normal, 'total', None):
for dmgType in normal.names():
val = getattr(normal, dmgType, None)
if val:
lines.append("{}: {}%".format(dmgType.capitalize(), formatAmount(val / normal.total * 100, 3, 0, 0)))
if hasSpoolUp(preSpool, fullSpool):
lines.append("Spool up: {}-{}".format(
formatAmount(preSpool.total, prec, lowest, highest),
formatAmount(fullSpool.total, prec, lowest, highest)))
return "\n".join(lines)
defaultSpoolValue = eos.config.settings['globalDefaultSpoolupPercentage']