Mercurial > wow > reagentmaker
comparison utils.lua @ 73:a77fd9d06ba4
Use the new internal data format everywhere
| author | contrebasse |
|---|---|
| date | Sat, 14 May 2011 20:55:49 +0200 |
| parents | 4f9fd025112b |
| children | 9d487333bf10 |
comparison
equal
deleted
inserted
replaced
| 72:9cf4ca2145a3 | 73:a77fd9d06ba4 |
|---|---|
| 212 end | 212 end |
| 213 wipe(headersState) | 213 wipe(headersState) |
| 214 end | 214 end |
| 215 print("restored") | 215 print("restored") |
| 216 end | 216 end |
| 217 | |
| 218 function A.isRecipeUnique(itemData) | |
| 219 local unique = true | |
| 220 | |
| 221 -- Check if the item is made by only one recipe. If not, return | |
| 222 if #itemData>1 then | |
| 223 local spellLink | |
| 224 for _,v in ipairs(itemData) do | |
| 225 if not spellLink then | |
| 226 spellLink = v.spellLink | |
| 227 else | |
| 228 if v.spellLink ~= spellLink then | |
| 229 unique = nil | |
| 230 break | |
| 231 end | |
| 232 end | |
| 233 end | |
| 234 end | |
| 235 | |
| 236 return unique | |
| 237 end |
