Mercurial > wow > itemauditor
changeset 116:44be3f350c9e
Fixed a bug introduced in r110 (2010-08-30) where the price an item should sell for was not being calculated.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Thu, 02 Sep 2010 11:45:47 -0700 |
parents | cf160210433c |
children | e16cd6ed3ba3 |
files | CHANGELOG.txt Modules/Crafting.lua |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGELOG.txt Mon Aug 30 12:02:17 2010 -0700 +++ b/CHANGELOG.txt Thu Sep 02 11:45:47 2010 -0700 @@ -1,3 +1,7 @@ +2010-09-02 Asa Ayers <Asa.Ayers@Gmail.com> + +- Fixed a bug introduced in r110 (2010-08-30) where the price an item should sell for was not being calculated. + 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.
--- a/Modules/Crafting.lua Mon Aug 30 12:02:17 2010 -0700 +++ b/Modules/Crafting.lua Thu Sep 02 11:45:47 2010 -0700 @@ -435,6 +435,9 @@ } totalCost = totalCost + reagentTotalCost end + + local price = (self:GetAuctionPrice(itemLink) or 0) + totalCost = totalCost + (price * ItemAuditor:GetAHCut()) local data = { recipeLink = recipeLink, recipeID = Utils.GetItemID(recipeLink), @@ -459,9 +462,6 @@ 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.