quick change
Steven Jackson [09-01-14 - 22:26]
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