diff Modules/Events.lua @ 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 64166ba5209a
children 71053b1f6c1c
line wrap: on
line diff
--- 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