Mercurial > wow > itemauditor
changeset 49:9ff6a3b02332 ticket7
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.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Wed, 21 Jul 2010 01:00:14 -0700 |
parents | 5e981c1df761 |
children | c0166af6e49a |
files | CHANGELOG.txt Modules/Events.lua |
diffstat | 2 files changed, 5 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- 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 <Asa.Ayers@Gmail.com> + +- 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 <Asa.Ayers@Gmail.com> - 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 <Asa.Ayers@Gmail.com>
--- 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()