# HG changeset patch # User Asa Ayers # Date 1279377203 25200 # Node ID f5d384fe7e4a9eb0c3bc70243fae622d852df087 # Parent e6ddeb9f9994fbdf7741aa045c5112ce7dc04d0c 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. diff -r e6ddeb9f9994 -r f5d384fe7e4a CHANGELOG.txt --- 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 + +- 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 - 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 diff -r e6ddeb9f9994 -r f5d384fe7e4a Modules/Events.lua --- 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")