From 30fa596230fe4e7a818ec0180ee5c796501eaee5 Mon Sep 17 00:00:00 2001 From: Repooc Date: Wed, 6 Aug 2014 20:01:52 -0400 Subject: [PATCH] changed tremove to keep it uniform across S&L, consolidated variable declaration --- ElvUI_SLE/modules/loot.lua | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/ElvUI_SLE/modules/loot.lua b/ElvUI_SLE/modules/loot.lua index 6af45c2..3476624 100644 --- a/ElvUI_SLE/modules/loot.lua +++ b/ElvUI_SLE/modules/loot.lua @@ -1,21 +1,17 @@ local E, L, V, P, G, _ = unpack(ElvUI); local LT = E:GetModule('SLE_Loot') -local check = false +local check, ann, GrDes = false, false, false local t = 0 -local loottemp = {} -local MyName = E.myname +local n = 0 +local loot, loottemp, numbers = {}, {}, {} +local MyName, UnitLevel = E.myname, UnitLevel local IsInGroup, IsInRaid, IsPartyLFG = IsInGroup, IsInRaid, IsPartyLFG local GetNumGroupMembers, GetRaidRosterInfo = GetNumGroupMembers, GetRaidRosterInfo local GetLootSlotType, GetLootSlotLink, GetLootSlotInfo, GetLootRollItemInfo = GetLootSlotType, GetLootSlotLink, GetLootSlotInfo, GetLootRollItemInfo local GetNumLootItems, GetItemInfo = GetNumLootItems, GetItemInfo local IsLeftControlKeyDown = IsLeftControlKeyDown -local loot = {} -local numbers = {} -local n = 0 -local Tremove = table.remove -local ann, GrDes = false, false +local tremove = table.remove local frozen, chaos = select(1, GetItemInfo(43102)), select(1, GetItemInfo(52078)) -local UnitLevel = UnitLevel local function Check() local name, rank, isML @@ -39,8 +35,8 @@ local function Merge() while loot[i] ~= loot[k] do k = k + 1 end if i ~= k then numbers[i] = numbers[i] + numbers[k] - Tremove(numbers, k) - Tremove(loot, k) + tremove(numbers, k) + tremove(loot, k) n = n - 1 end end -- 1.7.9.5