Show spoolup part before damage distribution
This commit is contained in:
@@ -160,15 +160,15 @@ class FirepowerViewFull(StatsView):
|
|||||||
if normal is None or preSpool is None or fullSpool is None:
|
if normal is None or preSpool is None or fullSpool is None:
|
||||||
return ""
|
return ""
|
||||||
lines = []
|
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):
|
if getattr(normal, 'total', None):
|
||||||
for dmgType in normal.names():
|
for dmgType in normal.names():
|
||||||
val = getattr(normal, dmgType, None)
|
val = getattr(normal, dmgType, None)
|
||||||
if val:
|
if val:
|
||||||
lines.append("{}: {}%".format(dmgType.capitalize(), formatAmount(val / normal.total * 100, 3, 0, 0)))
|
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)
|
return "\n".join(lines)
|
||||||
|
|
||||||
defaultSpoolValue = eos.config.settings['globalDefaultSpoolupPercentage']
|
defaultSpoolValue = eos.config.settings['globalDefaultSpoolupPercentage']
|
||||||
|
|||||||
Reference in New Issue
Block a user