Mercurial > wow > itemauditor
comparison Modules/QuickAuctions.lua @ 129:5f6182a97d40
Re-enabled IA QuickAuctions decider. I unintentionally disabled it when working on the QAManager code.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Fri, 03 Sep 2010 22:30:31 -0700 |
parents | d94195157a6b |
children | 613fd4bc6999 |
comparison
equal
deleted
inserted
replaced
128:451d8a19edea | 129:5f6182a97d40 |
---|---|
116 QAAPI:SetGroupConfig(groupName, 'threshold', ceil(threshold)) | 116 QAAPI:SetGroupConfig(groupName, 'threshold', ceil(threshold)) |
117 end | 117 end |
118 end | 118 end |
119 | 119 |
120 local function isProfitable(data) | 120 local function isProfitable(data) |
121 if ItemAuditor.IsQAEnabled() then | 121 if ItemAuditor:IsQACompatible() then |
122 local QAGroup = QAAPI:GetItemGroup(data.link) | 122 local QAGroup = QAAPI:GetItemGroup(data.link) |
123 if QAGroup ~= nil then | 123 if QAGroup ~= nil then |
124 local currentInvested, _, currentCount = ItemAuditor:GetItemCost(data.link) | 124 local currentInvested, _, currentCount = ItemAuditor:GetItemCost(data.link) |
125 local threshold, postCap, perAuction = QAAPI:GetGroupConfig(QAGroup) | 125 local threshold, postCap, perAuction = QAAPI:GetGroupConfig(QAGroup) |
126 local stackSize = postCap * perAuction | 126 local stackSize = postCap * perAuction |
155 isPercent = true, | 155 isPercent = true, |
156 get = function() return ItemAuditor.db.char.qa_extra end, | 156 get = function() return ItemAuditor.db.char.qa_extra end, |
157 set = function(info, value) | 157 set = function(info, value) |
158 ItemAuditor.db.char.qa_extra = value | 158 ItemAuditor.db.char.qa_extra = value |
159 end, | 159 end, |
160 handler = ItemAuditor, | 160 disabled = function() return not ItemAuditor:IsQACompatible() end, |
161 disabled = 'IsQACompatible', | |
162 order = 10, | 161 order = 10, |
163 }, | 162 }, |
164 } | 163 } |
165 Crafting.RegisterCraftingDecider('IA QuickAuctions', isProfitable, QADeciderOptions) | 164 Crafting.RegisterCraftingDecider('IA QuickAuctions', isProfitable, QADeciderOptions) |
166 | 165 |