bugfix shagutweaks not optional
if shagu tweals is not installed then properly dont try to use its values for unnown vendor prices
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
1. Added auto bid feature, doubled the existing auto buy code and slighly editted
|
||||
2. Added auto pricing heuristic, these are activate when posting an item with bid price 0, the buyout price works as a minimum
|
||||
3. Added a keybind for the post button, this significantly speeds up mass posting of items
|
||||
3. Added a keybind for the post button, this significantly speeds up mass posting of items when you dont need to change saved prices
|
||||
4. Changed the default post stack size to rand(1,max) instead of always max
|
||||
5. FIXED TWILLIGHT CULTIST SET NOT DISENCHATABLE
|
||||
6. use SHagu tweaks vendor values if aux values not avaialbe
|
||||
6. use SHagu tweaks vendor values if aux values not avaialbe (might need fixing if you dont actually have shaguweaks)
|
||||
7. dont auto bid on own items
|
||||
8. new filter disenchant-percent and bid-disencahnt-percent
|
||||
9. enchanting created wands are not encahntabke, same with twillight stuff at 5. reworked implementation for easier addition
|
||||
|
||||
+1
-1
@@ -91,7 +91,7 @@ function post_auction(slot, k)
|
||||
local vendor_price = 0
|
||||
if aux.account_data.merchant_sell[item_info.item_id] ~= nil then
|
||||
vendor_price = tonumber(aux.account_data.merchant_sell[item_info.item_id])
|
||||
elseif ShaguTweaks.SellValueDB[item_info.item_id] ~= nil then
|
||||
elseif ShaguTweaks and ShaguTweaks.SellValueDB[item_info.item_id] ~= nil then
|
||||
local charges = 1
|
||||
if info.max_item_charges(item_info.item_id) ~= nil then
|
||||
charges=info.max_item_charges(item_info.item_id)
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ function M.extend_tooltip(tooltip, link, quantity)
|
||||
end
|
||||
if settings.merchant_sell then
|
||||
local price = info.merchant_info(item_id)
|
||||
if price == nil and ShaguTweaks.SellValueDB[item_id] ~= nil then
|
||||
if price == nil and ShaguTweaks and ShaguTweaks.SellValueDB[item_id] ~= nil then
|
||||
local charges = 1
|
||||
if info.max_item_charges(item_id) ~= nil then
|
||||
charges=info.max_item_charges(item_id)
|
||||
|
||||
+2
-2
@@ -186,7 +186,7 @@ M.filters = {
|
||||
validator = function(amount)
|
||||
return function(auction_record)
|
||||
local vendor_price = info.merchant_info(auction_record.item_id)
|
||||
if not vendor_price then
|
||||
if not vendor_price and ShaguTweaks then
|
||||
vendor_price = ShaguTweaks.SellValueDB[auction_record.item_id]
|
||||
if vendor_price then
|
||||
local charges = 1
|
||||
@@ -206,7 +206,7 @@ M.filters = {
|
||||
validator = function(amount)
|
||||
return function(auction_record)
|
||||
local vendor_price = info.merchant_info(auction_record.item_id)
|
||||
if not vendor_price then
|
||||
if not vendor_price and ShaguTweaks then
|
||||
vendor_price = ShaguTweaks.SellValueDB[auction_record.item_id]
|
||||
if vendor_price then
|
||||
local charges = 1
|
||||
|
||||
Reference in New Issue
Block a user