Mercurial > wow > inventory
changeset 95:31493364b163
Fixed GetItemId usage to the proper capitals.
author | Zerotorescue |
---|---|
date | Sat, 08 Jan 2011 01:39:04 +0100 |
parents | 14a4d757d683 |
children | f9ff4aefda1e |
files | Core.lua Modules/Mover.lua Modules/Queue.lua Modules/Scanner.lua |
diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Core.lua Fri Jan 07 23:16:17 2011 +0100 +++ b/Core.lua Sat Jan 08 01:39:04 2011 +0100 @@ -438,7 +438,7 @@ DEFAULT_CHAT_FRAME:AddMessage(text or "", red, green, blue, nil, 5); end -function addon:GetItemID(itemLink) +function addon:GetItemId(itemLink) itemLink = itemLink and itemLink:match("|Hitem:([-0-9]+):"); -- if itemLink is nil, it won't execute the second part itemLink = itemLink and tonumber(itemLink);
--- a/Modules/Mover.lua Fri Jan 07 23:16:17 2011 +0100 +++ b/Modules/Mover.lua Sat Jan 08 01:39:04 2011 +0100 @@ -281,7 +281,7 @@ local _GetContainerItemId = GetContainerItemID; if movesSource == addon.Locations.Guild then - _GetContainerItemId = function(tabId, slotId) return addon:GetItemID(GetGuildBankItemLink(tabId, slotId)); end; + _GetContainerItemId = function(tabId, slotId) return addon:GetItemId(GetGuildBankItemLink(tabId, slotId)); end; end local _GetContainerItemInfo = GetContainerItemInfo; if movesSource == addon.Locations.Guild then
--- a/Modules/Queue.lua Fri Jan 07 23:16:17 2011 +0100 +++ b/Modules/Queue.lua Sat Jan 08 01:39:04 2011 +0100 @@ -69,7 +69,7 @@ local itemLink = GetTradeSkillItemLink(i); if itemLink then - local itemId = addon:GetItemID(itemLink); + local itemId = addon:GetItemId(itemLink); if not itemId then -- If this isn't an item, it can only be an enchant instead itemId = tonumber(itemLink:match("|Henchant:([-0-9]+)|h"));
--- a/Modules/Scanner.lua Fri Jan 07 23:16:17 2011 +0100 +++ b/Modules/Scanner.lua Sat Jan 08 01:39:04 2011 +0100 @@ -70,7 +70,7 @@ -- A not equal-comparison should be quicker than a larger than-comparison local itemLink = GetGuildBankItemLink(tabId, slotId); - local itemId = itemLink and addon:GetItemID(itemLink); + local itemId = itemLink and addon:GetItemId(itemLink); local itemCount = itemLink and select(2, GetGuildBankItemInfo(tabId, slotId)); if itemLink and itemId and itemCount and itemCount > 0 then