Mercurial > wow > reagentmaker
comparison utils.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 | 60871b43531d | 
| children | 4f9fd025112b | 
   comparison
  equal
  deleted
  inserted
  replaced
| 69:0675410645de | 70:32ec6417874a | 
|---|---|
| 54 end | 54 end | 
| 55 | 55 | 
| 56 -- Find the first tradeskill index of the recipe to make an item | 56 -- Find the first tradeskill index of the recipe to make an item | 
| 57 function A.findSkillIndex(itemID) | 57 function A.findSkillIndex(itemID) | 
| 58 for i = 1,GetNumTradeSkills() do | 58 for i = 1,GetNumTradeSkills() do | 
| 59 local skillName, skillType, numAvailable, isExpanded, serviceType, numSkillUps = GetTradeSkillInfo(i) | 59 local skillName, skillType = GetTradeSkillInfo(i) | 
| 60 if skillType == "header" then | 60 if skillType == "header" then | 
| 61 else | 61 else | 
| 62 if skillName then | 62 local ID = A.link2ID(GetTradeSkillItemLink(i)) | 
| 63 local ID = A.link2ID(GetTradeSkillItemLink(i)) | 63 if ID and ID == itemID then | 
| 64 if ID and ID == itemID then | 64 return i | 
| 65 return i | |
| 66 end -- if | |
| 67 end -- if | 65 end -- if | 
| 68 end -- if | 66 end -- if | 
| 69 end -- for | 67 end -- for | 
| 70 --A.Error(L["Tradeskill not found for %d, is the recipe hidden ?"]:format(itemID)) | 68 --A.Error(L["Tradeskill not found for %d, is the recipe hidden ?"]:format(itemID)) | 
| 71 end -- function | 69 end -- function | 
