done away with static database
This commit is contained in:
+2
-11
@@ -732,15 +732,6 @@ function private.quantity_update()
|
||||
refresh = true
|
||||
end
|
||||
|
||||
function private.auctionable(item_info)
|
||||
local durability, max_durability = Aux.info.durability(item_info.tooltip)
|
||||
return Aux.static.item_info(item_info.item_id)
|
||||
and not Aux.info.tooltip_match(ITEM_SOULBOUND, item_info.tooltip)
|
||||
and not Aux.info.tooltip_match(ITEM_CONJURED, item_info.tooltip)
|
||||
and not item_info.lootable
|
||||
and not (durability and durability < max_durability)
|
||||
end
|
||||
|
||||
function private.unit_vendor_price(item_key)
|
||||
local inventory_iterator = Aux.util.inventory_iterator()
|
||||
|
||||
@@ -753,7 +744,7 @@ function private.unit_vendor_price(item_key)
|
||||
local item_info = Aux.info.container_item(slot.bag, slot.bag_slot)
|
||||
if item_info and item_info.item_key == item_key then
|
||||
|
||||
if private.auctionable(item_info) then
|
||||
if Aux.info.auctionable(item_info.tooltip, nil, item_info.lootable) then
|
||||
ClearCursor()
|
||||
PickupContainerItem(slot.bag, slot.bag_slot)
|
||||
ClickAuctionSellItemButton()
|
||||
@@ -834,7 +825,7 @@ function private.update_inventory_records()
|
||||
if item_info then
|
||||
local charge_class = item_info.charges or 0
|
||||
|
||||
if private.auctionable(item_info) then
|
||||
if Aux.info.auctionable(item_info.tooltip, nil, item_info.lootable) then
|
||||
if not auction_candidate_map[item_info.item_key] then
|
||||
|
||||
local availability = { [0]=0, [1]=0, [2]=0, [3]=0, [4]=0, [5]=0 }
|
||||
|
||||
Reference in New Issue
Block a user