# HG changeset patch # User Asa Ayers # Date 1283453147 25200 # Node ID 44be3f350c9e1dd52eb492d4508732a9bf90da31 # Parent cf160210433c04bde7490b921911171de2c53f3d Fixed a bug introduced in r110 (2010-08-30) where the price an item should sell for was not being calculated. diff -r cf160210433c -r 44be3f350c9e CHANGELOG.txt --- 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 + +- 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 - 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. diff -r cf160210433c -r 44be3f350c9e Modules/Crafting.lua --- 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.