Mercurial > wow > itemauditor
changeset 110:cf160210433c
Updated Total Cost in /ia crafting to include the AH cut based on the price column. This will also reduce the profit column to consider the additional cost.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Mon, 30 Aug 2010 12:02:17 -0700 |
parents | c59d22fac6d1 |
children | 1cb0027da35c 44be3f350c9e |
files | CHANGELOG.txt Modules/Crafting.lua |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGELOG.txt Fri Aug 27 19:08:15 2010 -0700 +++ b/CHANGELOG.txt Mon Aug 30 12:02:17 2010 -0700 @@ -1,3 +1,7 @@ +2010-08-30 Asa Ayers <Asa.Ayers@Gmail.com> + +- Updated Total Cost in /ia crafting to include the AH cut based on the price column. This will also reduce the profit column to consider the additional cost. + 2010-08-27 Asa Ayers <Asa.Ayers@Gmail.com> - Added an option to enable the COD warning under /ia options > Messages > COD Warning. This is on by default.
--- a/Modules/Crafting.lua Fri Aug 27 19:08:15 2010 -0700 +++ b/Modules/Crafting.lua Mon Aug 30 12:02:17 2010 -0700 @@ -441,9 +441,9 @@ link = itemLink, name = itemName, count = count, - price = (self:GetAuctionPrice(itemLink) or 0), + price = price, cost = totalCost, - profit = (self:GetAuctionPrice(itemLink) or 0) - totalCost, + profit = price - totalCost, reagents = reagents, count = count, tradeSkillIndex = i, @@ -459,6 +459,9 @@ if data.queue > 0 then data.queue = max(0, data.queue - count) end + + local price = (self:GetAuctionPrice(itemLink) or 0) + totalCost = totalCost + (price * ItemAuditor:GetAHCut()) -- If a tradeskill makes 5 at a time and something asks for 9, we should only -- craft twice to get 10.