Skip to content

Commit 86ad17b

Browse files
committed
Expand breacher tooltip
1 parent b8ad477 commit 86ad17b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

gui/builtinViewColumns/misc.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -810,13 +810,16 @@ def __getData(self, stuff):
810810
return text, tooltip
811811
elif chargeGroup in ("SCARAB Breacher Pods",):
812812
duration = stuff.getModifiedChargeAttr("dotDuration") / 1000
813-
dmgAbs = stuff.getModifiedChargeAttr("dotMaxDamagePerTick") * duration
814-
dmgRel = stuff.getModifiedChargeAttr("dotMaxHPPercentagePerTick") * duration
813+
dmgAbs = stuff.getModifiedChargeAttr("dotMaxDamagePerTick")
814+
dmgRel = stuff.getModifiedChargeAttr("dotMaxHPPercentagePerTick")
815815
text = "{}/{}% over {}s".format(
816-
formatAmount(dmgAbs, 3, 0, 6),
817-
formatAmount(dmgRel, 3, 0, 6),
816+
formatAmount(dmgAbs * duration, 3, 0, 6),
817+
formatAmount(dmgRel * duration, 3, 0, 6),
818818
formatAmount(duration, 0, 0, 0))
819-
tooltip = "Pure damage done over time, minimum of absolute / relative"
819+
fullDmgHp = dmgAbs / (dmgRel / 100)
820+
tooltip = (
821+
'Pure damage inflicted over time, minimum of absolute / relative\n'
822+
'Full DPS from {} target HP').format(formatAmount(fullDmgHp, 3, 0, 6))
820823
return text, tooltip
821824
else:
822825
return "", None

0 commit comments

Comments
 (0)