From fccba460492ad7bfed18dec6f56bf78b2dca82e9 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 25 Aug 2021 09:48:32 +0200 Subject: [PATCH] sell-junk: make use of vendor values database --- mods/sell-junk.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/sell-junk.lua b/mods/sell-junk.lua index 7265132..b76cbcc 100644 --- a/mods/sell-junk.lua +++ b/mods/sell-junk.lua @@ -84,7 +84,7 @@ module.enable = function(self) -- get value local _, icount = GetContainerItemInfo(bag, slot) local _, _, id = string.find(GetContainerItemLink(bag, slot), "item:(%d+):%d+:%d+:%d+") - local price = StaticModSellValue[tonumber(id)] + local price = ShaguTweaks.SellValueDB[tonumber(id)] if this.price then this.price = this.price + ( price * ( icount or 1 ) ) this.count = this.count + 1