Mercurial > wow > reagentmaker
diff utils.lua @ 25:578b9c9479c9
Remove errors for hidden recipes and show a '?' when count isn't available
author | contrebasse |
---|---|
date | Thu, 28 Apr 2011 19:31:01 +0200 |
parents | 5f3a5b88fb19 |
children | aa2f6965c0f6 |
line wrap: on
line diff
--- a/utils.lua Wed Apr 27 23:46:20 2011 +0200 +++ b/utils.lua Thu Apr 28 19:31:01 2011 +0200 @@ -34,11 +34,11 @@ function A.numMakable(reagentID) -- Look for the recipe to make the item local reagentIndex = A.findSkillIndex(reagentID) - if not reagentIndex then return 0 end + if not reagentIndex then return end -- Check how many items we can craft local skillName, skillType, numReagentMakable, isExpanded, serviceType, numSkillUps = GetTradeSkillInfo(reagentIndex) - return numReagentMakable or 0, reagentIndex + return numReagentMakable, reagentIndex end -- Find the first tradeskill index of the recipe to make an item