comparison Modules/Crafting.lua @ 82:e9f7bc9199ca release 2010-08-05

Fixed Bug 23 - When you purchase multiple stacks of the same item and it is one you have not invested in yet, ItemAuditor mistakenly counted items you have not yet pulled from the mail as items you already owned. This resulted in those items being counted twice.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 05 Aug 2010 22:20:44 -0700
parents a8fc802b42ba
children 8d5ad3b71f6f
comparison
equal deleted inserted replaced
81:64166ba5209a 82:e9f7bc9199ca
377 local skillName, skillType, numAvailable, isExpanded, altVerb = GetTradeSkillInfo(i) 377 local skillName, skillType, numAvailable, isExpanded, altVerb = GetTradeSkillInfo(i)
378 local itemName, itemLink= GetItemInfo(itemId) 378 local itemName, itemLink= GetItemInfo(itemId)
379 379
380 -- This check has to be here for things like Inscription Research that don't produce an item. 380 -- This check has to be here for things like Inscription Research that don't produce an item.
381 if itemLink then 381 if itemLink then
382 local count = Altoholic:GetItemCount(itemId) 382 local count = ItemAuditor:GetItemCount(itemId)
383 local reagents = {} 383 local reagents = {}
384 local totalCost = 0 384 local totalCost = 0
385 for reagentId = 1, GetTradeSkillNumReagents(i) do 385 for reagentId = 1, GetTradeSkillNumReagents(i) do
386 local reagentName, _, reagentCount = GetTradeSkillReagentInfo(i, reagentId); 386 local reagentName, _, reagentCount = GetTradeSkillReagentInfo(i, reagentId);
387 local reagentLink = GetTradeSkillReagentItemLink(i, reagentId) 387 local reagentLink = GetTradeSkillReagentItemLink(i, reagentId)