cache refactoring
This commit is contained in:
@@ -47,8 +47,7 @@ function Aux.on_load()
|
||||
end)
|
||||
end
|
||||
|
||||
Aux.merchant.on_load()
|
||||
Aux.item_cache.on_load()
|
||||
Aux.cache.on_load()
|
||||
Aux.persistence.on_load()
|
||||
Aux.tooltip.on_load()
|
||||
Aux.search_frame.on_load()
|
||||
@@ -99,7 +98,7 @@ function Aux.on_addon_loaded()
|
||||
for i=1,reagent_count do
|
||||
local item_id, suffix_id = Aux.info.parse_hyperlink(GetCraftReagentItemLink(id, i))
|
||||
local count = ({GetCraftReagentInfo(id, i)})[3]
|
||||
local _, price, limited = Aux.merchant.info(item_id)
|
||||
local _, price, limited = Aux.cache.merchant_info(item_id)
|
||||
local value = price and not limited and price or Aux.history.value(item_id..':'..suffix_id)
|
||||
if not value then
|
||||
total_cost = nil
|
||||
@@ -126,7 +125,7 @@ function Aux.on_addon_loaded()
|
||||
for i=1,reagent_count do
|
||||
local item_id, suffix_id = Aux.info.parse_hyperlink(GetTradeSkillReagentItemLink(id, i))
|
||||
local count = ({GetTradeSkillReagentInfo(id, i)})[3]
|
||||
local _, price, limited = Aux.merchant.info(item_id)
|
||||
local _, price, limited = Aux.cache.merchant_info(item_id)
|
||||
local value = price and not limited and price or Aux.history.value(item_id..':'..suffix_id)
|
||||
if not value then
|
||||
total_cost = nil
|
||||
|
||||
Reference in New Issue
Block a user