cache refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-03-21 02:29:16 +01:00
parent 81f19b88e9
commit 6931a26fd5
9 changed files with 174 additions and 151 deletions
+3 -4
View File
@@ -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