From 472a8761c0ad417c7f82c65aff2fb5206eb6c7cf Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Mon, 1 Sep 2014 17:26:16 -0500 Subject: [PATCH] quick change --- .../SVUI/packages/stats/stats/experience.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Interface/AddOns/SVUI/packages/stats/stats/experience.lua b/Interface/AddOns/SVUI/packages/stats/stats/experience.lua index 4572ec7..4d47b94 100644 --- a/Interface/AddOns/SVUI/packages/stats/stats/experience.lua +++ b/Interface/AddOns/SVUI/packages/stats/stats/experience.lua @@ -113,14 +113,15 @@ end local function Experience_OnEnter(self) MOD:Tip(self) - local f, g = getUnitXP("player") + local XP, maxXP = getUnitXP("player") local h = GetXPExhaustion() MOD.tooltip:AddLine(L["Experience"]) MOD.tooltip:AddLine(" ") - MOD.tooltip:AddDoubleLine(L["XP:"], format(" %d / %d (%d%%)", f, g, f / g * 100), 1, 1, 1) - MOD.tooltip:AddDoubleLine(L["Remaining:"], format(" %d (%d%% - %d "..L["Bars"]..")", g-f, (g-f) / g * 100, 20 * g-f / g), 1, 1, 1) + + MOD.tooltip:AddDoubleLine(L["XP:"], (" %d / %d (%d%%)"):format(XP, maxXP, (XP / maxXP) * 100), 1, 1, 1) + MOD.tooltip:AddDoubleLine(L["Remaining:"], (" %d (%d%% - %d "..L["Bars"]..")"):format(maxXP - XP, (maxXP - XP) / maxXP * 100, 20 * (maxXP - XP) / maxXP), 1, 1, 1) if h then - MOD.tooltip:AddDoubleLine(L["Rested:"], format(" + %d (%d%%)", h, h / g * 100), 1, 1, 1) + MOD.tooltip:AddDoubleLine(L["Rested:"], format(" + %d (%d%%)", h, h / maxXP * 100), 1, 1, 1) end MOD:ShowTip() end -- 1.7.9.5