done away with static database

This commit is contained in:
Manuel Simon Hirsig
2016-03-20 14:43:20 +01:00
parent 4e1252b625
commit 331de3b78c
10 changed files with 129 additions and 14479 deletions
+2 -11
View File
@@ -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 }