diff Modules/ArkInventoryRules.lua @ 88:2112f71c4237

Changed the ArkInventory rule to consider items with no competition to be profitable.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Tue, 10 Aug 2010 23:19:18 -0700
parents 71de6e86a1a4
children 79dc87430cb3
line wrap: on
line diff
--- a/Modules/ArkInventoryRules.lua	Sun Aug 08 07:57:45 2010 -0700
+++ b/Modules/ArkInventoryRules.lua	Tue Aug 10 23:19:18 2010 -0700
@@ -47,11 +47,8 @@
 					local ap = ItemAuditor:GetAuctionPrice(link)
 					local keep = 1 - ItemAuditor:GetAHCut()
 					
-					if ap ~= nil then
-						
-						if ap > ceil(investedPerItem/keep) then
-							return true
-						end
+					if ap == nil or ap > ceil(investedPerItem/keep) then
+						return true
 					end
 				end
 				return false