Mercurial > wow > itemauditor
changeset 33:f5d384fe7e4a
Fixed a bug that occurs if you take a flight point and the first thing you kill only has one item. ItemAuditor was incorrectly attaching the cost fo the flight to the cost of that item.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sat, 17 Jul 2010 07:33:23 -0700 |
parents | e6ddeb9f9994 |
children | d21d202f3b3d |
files | CHANGELOG.txt Modules/Events.lua |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGELOG.txt Fri Jul 16 16:31:24 2010 -0700 +++ b/CHANGELOG.txt Sat Jul 17 07:33:23 2010 -0700 @@ -1,7 +1,12 @@ +2010-07-17 Asa Ayers <Asa.Ayers@Gmail.com> + +- Fixed a bug that occurs if you take a flight point and the first thing you kill only has one item. ItemAuditor was incorrectly attaching the cost fo the flight to the cost of that item. + 2010-07-16 Asa Ayers <Asa.Ayers@Gmail.com> - Added an interface to be able to view what you have invested in. I still need to build a way to modify this information, - Bug fix +- Changed 'Count' to '# Owned' and made it right aligned. 2010-07-14 Asa Ayers <Asa.Ayers@Gmail.com>
--- a/Modules/Events.lua Fri Jul 16 16:31:24 2010 -0700 +++ b/Modules/Events.lua Sat Jul 17 07:33:23 2010 -0700 @@ -115,10 +115,11 @@ end if positiveCount + negativeCount == 0 then - return - end - - if diff.money > 0 and self:tcount(positive) > 0 and self:tcount(negative) == 0 then + --[[ + Nothing needs to be done, but this will prevent mistakenly attributing + the cost of flights to the first item you pick up. + ]] + elseif diff.money > 0 and self:tcount(positive) > 0 and self:tcount(negative) == 0 then self:Debug("loot") elseif abs(diff.money) > 0 and self:tcount(diff.items) == 1 then self:Debug("purchase or sale")