diff Modules/Events.lua @ 20:ff9a698caebc

Added options for the crafting threshold and auction threshold. I also fixed the queue to use the item cost to determine if there is enough profit instead of the auction (QA) threshold which already has profit built in.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Sun, 04 Jul 2010 09:33:25 -0700
parents 44e70a3fdb19
children 819bfdc5d73c
line wrap: on
line diff
--- a/Modules/Events.lua	Sun Jul 04 07:24:12 2010 -0700
+++ b/Modules/Events.lua	Sun Jul 04 09:33:25 2010 -0700
@@ -100,7 +100,7 @@
 	
 	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
+	elseif abs(diff.money) > 0 and self:tcount(diff.items) == 1 then
 		self:Debug("purchase or sale")
 		
 		for link, count in pairs(diff.items) do