Mercurial > wow > itemauditor
diff Modules/Events.lua @ 15:44e70a3fdb19
Merged utils into ItemAuditor.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sat, 03 Jul 2010 07:40:01 -0700 |
parents | 8c83d5f6e306 |
children | ff9a698caebc |
line wrap: on
line diff
--- a/Modules/Events.lua Sat Jul 03 07:28:40 2010 -0700 +++ b/Modules/Events.lua Sat Jul 03 07:40:01 2010 -0700 @@ -98,19 +98,19 @@ end end - 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") + if diff.money > 0 and self:tcount(positive) > 0 and self:tcount(negative) == 0 then + self:Debug("loot") + elseif self:tcount(diff.items) == 1 then + self:Debug("purchase or sale") for link, count in pairs(diff.items) do self:SaveValue(link, 0 - diff.money) end - elseif utils:tcount(diff.items) > 1 then + elseif self:tcount(diff.items) > 1 then - if utils:tcount(positive) > 0 and utils:tcount(negative) > 0 then + if self:tcount(positive) > 0 and self:tcount(negative) > 0 then -- we must have created/converted something - -- self:Debug("conversion") + self:Debug("conversion") local totalChange = 0 for link, change in pairs(negative) do