Skip to content

Commit 036e857

Browse files
committed
Do not organize golden mugs
1 parent 5959f75 commit 036e857

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

src/005-container.lua

+19-17
Original file line numberDiff line numberDiff line change
@@ -542,25 +542,27 @@ Container = (function()
542542

543543
-- Create itemid list for each supply group
544544
for itemid, supply in pairs(_supplies) do
545-
-- Amulets and Rings always go in the Supplies backpack
546-
local name = supply.group
547-
if name == 'Amulet' or name == 'Ring' then
548-
name = 'Supplies'
549-
end
550-
-- Send to Main backpack list if it matches the index
551-
local backpack = _backpacks[name]
552-
if backpack then
553-
if backpack == _backpacks['Main'] then
554-
name = 'Main'
545+
if itemid ~= ITEMID.GOLDEN_MUG then
546+
-- Amulets and Rings always go in the Supplies backpack
547+
local name = supply.group
548+
if name == 'Amulet' or name == 'Ring' then
549+
name = 'Supplies'
555550
end
556-
-- Init table if it doesn't exist
557-
if not itemLists[backpack] then
558-
itemLists[backpack] = {}
559-
-- Add backpack to index for easy iteration
560-
destinations[#destinations+1] = {name, backpack}
551+
-- Send to Main backpack list if it matches the index
552+
local backpack = _backpacks[name]
553+
if backpack then
554+
if backpack == _backpacks['Main'] then
555+
name = 'Main'
556+
end
557+
-- Init table if it doesn't exist
558+
if not itemLists[backpack] then
559+
itemLists[backpack] = {}
560+
-- Add backpack to index for easy iteration
561+
destinations[#destinations+1] = {name, backpack}
562+
end
563+
-- Add supply item to the list
564+
itemLists[backpack][itemid] = true
561565
end
562-
-- Add supply item to the list
563-
itemLists[backpack][itemid] = true
564566
end
565567
end
566568

0 commit comments

Comments
 (0)