From ef440f5671756c64fe4780e5bb3c807fdec06239 Mon Sep 17 00:00:00 2001 From: ckaotik Date: Sun, 23 May 2010 00:29:22 +0200 Subject: [PATCH] forgetfulness vs ckaotik = 2:0. fixed junkvalue not updating properly --- core.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core.lua b/core.lua index 9dfe90a..051a8a2 100644 --- a/core.lua +++ b/core.lua @@ -634,7 +634,8 @@ function BrokerGarbage:ScanInventoryContainer(container) -- update toSellValue if item.classification == BrokerGarbage.VENDORLIST or (item.classification == BrokerGarbage.UNUSABLE and BG_GlobalDB.sellNotWearable and item.quality <= BG_GlobalDB.sellNWQualityTreshold) or - (BG_GlobalDB.autoSellIncludeItems and item.classification == BrokerGarbage.INCLUDE) then + (BG_GlobalDB.autoSellIncludeItems and item.classification == BrokerGarbage.INCLUDE) or + (item.classification ~= BrokerGarbage.EXCLUDE and item.quality <= BG_GlobalDB.dropQuality) then local itemCount = select(2, GetContainerItemInfo(container, slot)) BrokerGarbage.toSellValue[container] = BrokerGarbage.toSellValue[container] + BrokerGarbage:GetCached(itemID).value * itemCount -- 1.7.9.5