Mercurial > wow > itemauditor
comparison Modules/Crafting.lua @ 122:d4cb8a690335
Fixed the Have Mats column to consider the number queued. Previously it was only telling if you had materials to make one of the item.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Thu, 02 Sep 2010 22:02:54 -0700 |
| parents | 44be3f350c9e |
| children | 4aa521a2a7e7 |
comparison
equal
deleted
inserted
replaced
| 121:f7efbd879062 | 122:d4cb8a690335 |
|---|---|
| 476 | 476 |
| 477 local numOwned = {} | 477 local numOwned = {} |
| 478 for key, data in pairs(realData) do | 478 for key, data in pairs(realData) do |
| 479 data.haveMaterials = true | 479 data.haveMaterials = true |
| 480 for id, reagent in pairs(data.reagents) do | 480 for id, reagent in pairs(data.reagents) do |
| 481 reagent.count = reagent.count * data.queue | |
| 482 | |
| 481 if not numOwned[reagent.link] then | 483 if not numOwned[reagent.link] then |
| 482 numOwned[reagent.link] = ItemAuditor:GetItemCount(ItemAuditor:GetIDFromLink(reagent.link)) | 484 numOwned[reagent.link] = ItemAuditor:GetItemCount(ItemAuditor:GetIDFromLink(reagent.link)) |
| 483 end | 485 end |
| 484 numOwned[reagent.link] = numOwned[reagent.link] - reagent.count | 486 numOwned[reagent.link] = numOwned[reagent.link] - reagent.count |
| 485 | 487 |
