Skip to content

Commit e042a21

Browse files
committed
Merge pull request #315 from lunedis/resistmultiplier
Showing Resist Multiplier in Tooltip
2 parents 5e56107 + 8a22907 commit e042a21

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gui/builtinStatsViews/resistancesViewFull.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,9 @@ def refreshPanel(self, fit):
197197
lbl = getattr(self, "labelResistance%sEhp" % tankType.capitalize())
198198
if ehp is not None:
199199
total += ehp[tankType]
200+
rrFactor = fit.ehp[tankType] / fit.hp[tankType]
200201
lbl.SetLabel(formatAmount(ehp[tankType], 3, 0, 9))
201-
lbl.SetToolTip(wx.ToolTip("%s: %d" % (tankType.capitalize(), ehp[tankType])))
202+
lbl.SetToolTip(wx.ToolTip("%s: %d\nResist Multiplier: x%.2f" % (tankType.capitalize(), ehp[tankType], rrFactor)))
202203
else:
203204
lbl.SetLabel("0")
204205

0 commit comments

Comments
 (0)