# HG changeset patch # User Zerotorescue # Date 1295107748 -3600 # Node ID 00cf4fc1697fbf7721dd31e2b5f33578229a71d7 # Parent dc6f405c1a5dd21496b74f246f3cd5f07f1f3da1 addon.Locations table is used at multiple modules, definition moved to Core.lua. diff -r dc6f405c1a5d -r 00cf4fc1697f Core.lua --- a/Core.lua Sat Jan 15 17:03:05 2011 +0100 +++ b/Core.lua Sat Jan 15 17:09:08 2011 +0100 @@ -18,6 +18,14 @@ addon.supportedAddons.itemCount = {}; addon.supportedAddons.crafting = {}; +addon.Locations = { + ["Bag"] = "Bag", + ["Bank"] = "Bank", + ["Guild"] = "Guild", + ["Mailbox"] = "Mailbox", + ["Merchant"] = "Merchant", +}; + function addon:OnInitialize() -- SAVED VARIABLES diff -r dc6f405c1a5d -r 00cf4fc1697f Modules/Mover.lua --- a/Modules/Mover.lua Sat Jan 15 17:03:05 2011 +0100 +++ b/Modules/Mover.lua Sat Jan 15 17:09:08 2011 +0100 @@ -6,14 +6,6 @@ local combinedMoves = {}; -- table storing all combined moves (with source and target) that is to be processed by the actual mover in the order of the index (1 to #) local movesSource; -addon.Locations = { - ["Bag"] = "Bag", - ["Bank"] = "Bank", - ["Guild"] = "Guild", - ["Mailbox"] = "Mailbox", - ["Merchant"] = "Merchant", -}; - local ContainerFunctions = { [addon.Locations.Bag] = { GetItemId = GetContainerItemID,