Mercurial > wow > itemauditor
diff Modules/Events.lua @ 10:c79ede3c7b82
Updated version and added a dependency on my modified API for QuickAuctions. Next I need to make that dependency optional
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Fri, 25 Jun 2010 22:03:44 -0700 |
parents | 374dd1a90d02 |
children | 8c83d5f6e306 |
line wrap: on
line diff
--- a/Modules/Events.lua Fri Jun 25 01:17:58 2010 -0700 +++ b/Modules/Events.lua Fri Jun 25 22:03:44 2010 -0700 @@ -80,7 +80,7 @@ end function addon:UpdateAudit() - self:Debug("UpdateAudit") + -- self:Debug("UpdateAudit") local currentInventory = self:GetCurrentInventory() local diff = addon:GetInventoryDiff(self.lastInventory, currentInventory) -- this is only here for debugging @@ -101,7 +101,7 @@ if diff.money > 0 and utils:tcount(positive) > 0 and utils:tcount(negative) == 0 then -- self:Debug("loot") elseif utils:tcount(diff.items) == 1 then - self:Debug("purchase or sale") + -- self:Debug("purchase or sale") for link, count in pairs(diff.items) do self:SaveValue(link, 0 - diff.money) @@ -111,6 +111,7 @@ if utils:tcount(positive) > 0 and utils:tcount(negative) > 0 then -- we must have created/converted something -- self:Debug("conversion") + local totalChange = 0 for link, change in pairs(negative) do local _, itemCost, count = self:GetItemCost(link, change)