# HG changeset patch # User Asa Ayers # Date 1279699214 25200 # Node ID 9ff6a3b023320e66720dd124c902cecfd4a5b4ce # Parent 5e981c1df761fb6a815fb0e8565cd1fb9e470401 I have changed my mind, price distribution will always be based on the AH price, unless none is available, then all items have the same weight which is what was being done before. diff -r 5e981c1df761 -r 9ff6a3b02332 CHANGELOG.txt --- a/CHANGELOG.txt Tue Jul 20 00:12:44 2010 -0700 +++ b/CHANGELOG.txt Wed Jul 21 01:00:14 2010 -0700 @@ -1,10 +1,13 @@ +2010-07-21 Asa Ayers + +- Fixed the way prices were being calculated as items were being created/destroyed/converted/crafted. see http://www.wowace.com/addons/itemauditor/tickets/7-create-options-for-how-to-distribute-value-when-creating/ + 2010-07-18 Asa Ayers - Implemented COD mail (Ticket #1) and updated the way postage was counted so that if you mail multiple items at once, they will all have the postage counted. I also removed the 30c for postage from how QA thresholds are calculated now that they will be counted every time. - Added a dialog to allow the user to send COD mail without a tracking number. - Replaced my edit window with a static popup. This looks and behaves better this way. - Fixed a couple nil related bugs -- Fixed the way prices were being calculated as items were being created/destroyed/converted/crafted 2010-07-18 Asa Ayers diff -r 5e981c1df761 -r 9ff6a3b02332 Modules/Events.lua --- a/Modules/Events.lua Tue Jul 20 00:12:44 2010 -0700 +++ b/Modules/Events.lua Wed Jul 21 01:00:14 2010 -0700 @@ -224,7 +224,7 @@ self.lastInventory = self:GetCurrentInventory() end -local function distributeValueByAHValue(self, totalValue, targetItems) +local function distributeValue(self, totalValue, targetItems) local weights = {} local totalWeight = 0 @@ -247,18 +247,6 @@ end end -local function distributeValue(self, totalValue, targetItems) - if true then - return distributeValueByAHValue(self, totalValue, targetItems) - else - local valuePerItem = totalChange / positiveCount - - for link, change in pairs(targetItems) do - self:SaveValue(link, valuePerItem * change, change) - end - end -end - function addon:UpdateAudit() -- self:Debug("UpdateAudit " .. event) local currentInventory = self:GetCurrentInventory()