Mercurial > wow > itemauditor
comparison Modules/AuctionHouse.lua @ 127:4f26dc55455d
Fixed Snatch. It broke when I converted haveMaterials from a bool to the number of items that can be created. (No changelog entry because that hasn't been released yet)
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Thu, 02 Sep 2010 23:29:17 -0700 |
parents | 4ec8611d9466 |
children |
comparison
equal
deleted
inserted
replaced
126:e8d3c299542c | 127:4f26dc55455d |
---|---|
105 end | 105 end |
106 clearSnatch() | 106 clearSnatch() |
107 | 107 |
108 local snatchList = {} | 108 local snatchList = {} |
109 local function Export(data) | 109 local function Export(data) |
110 if not data.haveMaterials then | 110 if data.haveMaterials < data.queue then |
111 for id, reagent in pairs(data.reagents) do | 111 for id, reagent in pairs(data.reagents) do |
112 if reagent.need > 0 and not snatchList[reagent.link] then | 112 if reagent.need > 0 and not snatchList[reagent.link] then |
113 snatchList[reagent.link] = true | 113 snatchList[reagent.link] = true |
114 ItemAuditor:Print("Adding %s for %s", reagent.link, Utils.FormatMoney(reagent.price)) | 114 ItemAuditor:Print("Adding %s for %s", reagent.link, Utils.FormatMoney(reagent.price)) |
115 Snatch.AddSnatch(reagent.link, reagent.price) | 115 Snatch.AddSnatch(reagent.link, reagent.price) |