Mercurial > wow > reagentmaker
comparison data.lua @ 38:aa2f6965c0f6
Add fancy errors/warnings and block recursion when a recipe has many reagents
| author | contrebasse |
|---|---|
| date | Fri, 29 Apr 2011 23:38:43 +0200 |
| parents | ef22738aebfe |
| children | c6a1f1cf560c |
comparison
equal
deleted
inserted
replaced
| 37:ef22738aebfe | 38:aa2f6965c0f6 |
|---|---|
| 312 break | 312 break |
| 313 end -- if | 313 end -- if |
| 314 end -- for | 314 end -- for |
| 315 if newSpell then | 315 if newSpell then |
| 316 A.data[itemID].spellLink = recipeLink | 316 A.data[itemID].spellLink = recipeLink |
| 317 A.data[itemID].manyReagents = A.data[itemID].manyReagents or GetTradeSkillNumReagents(i)>1 | |
| 317 tinsert(A.data[itemID],{reagentID,reagentCount,minMade,maxMade,spellName=skillName}) | 318 tinsert(A.data[itemID],{reagentID,reagentCount,minMade,maxMade,spellName=skillName}) |
| 318 end -- if | 319 end -- if |
| 319 end -- if | 320 end -- if |
| 320 --end -- if | 321 --end -- if |
| 321 end -- if | 322 end -- if |
