sell-junk: make use of vendor values database

This commit is contained in:
shagu
2021-08-25 09:48:32 +02:00
parent a72a8c392c
commit fccba46049
+1 -1
View File
@@ -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