Mercurial > wow > reagentmaker
diff MillingData.lua @ 70:32ec6417874a
Change the internal data format (not done yet for the external window)
author | contrebasse |
---|---|
date | Sat, 14 May 2011 20:19:22 +0200 |
parents | cd7e41015586 |
children | 996aaa818d04 |
line wrap: on
line diff
--- a/MillingData.lua Sat May 14 16:56:17 2011 +0200 +++ b/MillingData.lua Sat May 14 20:19:22 2011 +0200 @@ -132,8 +132,11 @@ local macroMill = "/cast "..GetSpellInfo(MillID).."\n/use %s" local MillLink = GetSpellLink(MillID) -for k,v in pairs(A.MillingData) do - v.spell = macroMill - v.spellID = MillID - v.spellLink = MillLink +-- Add "Tradeskill" data to each "recipe" +for itemID,t in pairs(A.MillingData) do + for i,v in ipairs(t) do + v.macro = macroMill + v.spellID = MillID + v.spellLink = MillLink + end end