changeset 91:e2dab8e34b32

Fixed an issue where trading an item and gold in exchange for a different item was not considering the gold in the price of the new item.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Wed, 11 Aug 2010 20:03:05 -0700
parents fab2c4341602
children 71053b1f6c1c
files CHANGELOG.txt Modules/Events.lua
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG.txt	Wed Aug 11 00:09:16 2010 -0700
+++ b/CHANGELOG.txt	Wed Aug 11 20:03:05 2010 -0700
@@ -1,3 +1,7 @@
+2010-08-11  Asa Ayers  <Asa.Ayers@Gmail.com>
+
+- Fixed an issue where trading an item and gold in exchange for a different item was not considering the gold in the price of the new item.
+
 2010-08-10  Asa Ayers  <Asa.Ayers@Gmail.com>
 
 - Changed the ArkInventory rule to consider items with no competition to be profitable.
--- a/Modules/Events.lua	Wed Aug 11 00:09:16 2010 -0700
+++ b/Modules/Events.lua	Wed Aug 11 20:03:05 2010 -0700
@@ -290,6 +290,7 @@
 			
 			totalChange = totalChange + (itemCost * abs(change))
 		end
+		totalChange = totalChange - diff.money
 		
 		distributeValue(self, totalChange, positive)
 	else