Quantcast

xp and slash command update

Steven Jackson [04-13-15 - 03:42]
xp and slash command update
Filename
SVUI_!Core/system/_reports/experience.lua
SVUI_!Core/system/slash.lua
diff --git a/SVUI_!Core/system/_reports/experience.lua b/SVUI_!Core/system/_reports/experience.lua
index cd9bdd4..b0b3a8a 100644
--- a/SVUI_!Core/system/_reports/experience.lua
+++ b/SVUI_!Core/system/_reports/experience.lua
@@ -191,8 +191,8 @@ Report.OnEnter = function(self)
 		Reports.ToolTip:AddDoubleLine(L["XP:"], (" %d  /  %d (%d%%)"):format(XP, maxXP, calc1), 1, 1, 1)
 		Reports.ToolTip:AddDoubleLine(L["Remaining:"], (" %d (%d%% - %d "..L["Bars"]..")"):format(remaining, r_percent, r_bars), 1, 1, 1)
 		if(exhaust > 0) then
-			local text = FormatExp(subset, exhaust, maxXP);
-			Reports.ToolTip:AddDoubleLine(L["Rested:"], format(" + %d (%d%%)", exhaust, text), 1, 1, 1)
+			local calc = (exhaust / maxXP) * 100;
+			Reports.ToolTip:AddDoubleLine(L["Rested:"], format(" + %d (%d%%)", exhaust, calc), 1, 1, 1)
 		end
 	end
 	Reports.ToolTip:AddLine(" ")
@@ -255,8 +255,8 @@ ReportBar.OnEnter = function(self)
 		Reports.ToolTip:AddDoubleLine(L["XP:"], (" %d  /  %d (%d%%)"):format(XP, maxXP, calc1), 1, 1, 1)
 		Reports.ToolTip:AddDoubleLine(L["Remaining:"], (" %d (%d%% - %d "..L["Bars"]..")"):format(remaining, r_percent, r_bars), 1, 1, 1)
 		if(exhaust > 0) then
-			local text = FormatExp(subset, exhaust, maxXP);
-			Reports.ToolTip:AddDoubleLine(L["Rested:"], format(" + %d (%d%%)", exhaust, text), 1, 1, 1)
+			local calc = (exhaust / maxXP) * 100;
+			Reports.ToolTip:AddDoubleLine(L["Rested:"], format(" + %d (%d%%)", exhaust, calc), 1, 1, 1)
 		end
 	end
 	Reports:ShowDataTip()
diff --git a/SVUI_!Core/system/slash.lua b/SVUI_!Core/system/slash.lua
index 4ff2446..caec8d5 100644
--- a/SVUI_!Core/system/slash.lua
+++ b/SVUI_!Core/system/slash.lua
@@ -30,7 +30,6 @@ local EnableAddOn           = _G.EnableAddOn;
 local DisableAddOn          = _G.DisableAddOn;
 local GetAddOnInfo          = _G.GetAddOnInfo;
 local GetAddOnMetadata      = _G.GetAddOnMetadata;
-local PlaySoundFile   		  = _G.PlaySoundFile;

 local SV = select(2, ...)
 local L = SV.L;
@@ -111,11 +110,6 @@ _G.SLASH_SVUIENABLE1="/enable"

 _G.SlashCmdList["SVUIDISABLE"] = DisableAddon;
 _G.SLASH_SVUIDISABLE1="/disable"
-
-_G.SlashCmdList["LOLWUT"] = function(msg)
-	PlaySoundFile("Sound\\Character\\Human\\HumanVocalFemale\\HumanFemalePissed04.wav")
-end
-_G.SLASH_LOLWUT1 = "/lolwut";
 --[[
 ##########################################################
 LEEEEEROY