comparison ui/ShoppingListTab.lua @ 21:a400b906acca v4

Version 4: fixed an issue with the bank. Added Void Storage. Added Reagent Bank. Also removed stackable items from the export string
author Adam tegen <adam.tegen@gmail.com>
date Wed, 15 Oct 2014 08:38:53 -0500
parents e77e01abce98
children 1851d0fd18fa
comparison
equal deleted inserted replaced
20:e6cd96d23c5a 21:a400b906acca
615 end 615 end
616 616
617 -- add the items from the players bags 617 -- add the items from the players bags
618 AskMrRobot.ScanBags(bagItemsWithCounts) 618 AskMrRobot.ScanBags(bagItemsWithCounts)
619 619
620 -- note: void storage can't hold stackable items, so don't worry about them
621
620 --substract any inventory we already have in bags/bank 622 --substract any inventory we already have in bags/bank
621 for itemId, count in pairs(bagItemsWithCounts) do 623 for itemId, count in pairs(bagItemsWithCounts) do
622 for _, gem in pairs(gemList) do 624 for _, gem in pairs(gemList) do
623 if gem.compatibleGemIds[itemId] and gem.count < gem.total then 625 if gem.compatibleGemIds[itemId] and gem.count < gem.total then
624 local needed = gem.total - gem.count 626 local needed = gem.total - gem.count