Mercurial > wow > reagentmaker
diff data.lua @ 108:618163a6d970 v1.0beta13
Always show counts and bypass all filtering and searches
author | contrebasse |
---|---|
date | Thu, 02 Jun 2011 14:12:06 +0200 |
parents | b980c00affcd |
children | d60d6b4cab0c |
line wrap: on
line diff
--- a/data.lua Thu Jun 02 00:57:17 2011 +0200 +++ b/data.lua Thu Jun 02 14:12:06 2011 +0200 @@ -9,6 +9,7 @@ -- lua functions local print = print local ipairs = ipairs + local pairs = pairs local tinsert = tinsert local select = select @@ -38,8 +39,8 @@ if NRecipes==0 or select(2,GetTradeSkillInfo(1))~="header" then return end - - tradeskillName = GetTradeSkillLine() + + local tradeskillName = GetTradeSkillLine() -- Check if the pseudo tradeskills have to be added if tradeskillName == GetSpellInfo(25229) then -- Jewelcrafting @@ -76,9 +77,16 @@ -- reagent ID reagentID = A.link2ID(GetTradeSkillReagentItemLink(i, 1)) - -- reagent number needed reagentCount = select(3,GetTradeSkillReagentInfo(i, 1)) + else + -- no reagentID + + -- contains data for the whole reagents + reagentCount = {} + for j = 1,numReagents do + tinsert(reagentCount,{A.link2ID(GetTradeSkillReagentItemLink(i, j)), select(3,GetTradeSkillReagentInfo(i, j))}) + end end -- number of reagent created by the recipe @@ -109,7 +117,7 @@ end -- if end -- for end -- if - + -- Cache the data if addSpell then local spell = {reagentID,reagentCount,minMade,maxMade}