From 0376c924a7a11270862ca3165d8b07bdb0aef351 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Wed, 1 Jan 2014 23:03:13 -0600 Subject: [PATCH] Always track all professions and reputations --- EnchantIDs.lua | 7 ------- WeightsWatcher.lua | 18 +++++++----------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/EnchantIDs.lua b/EnchantIDs.lua index 12aa5f5..e48e632 100644 --- a/EnchantIDs.lua +++ b/EnchantIDs.lua @@ -13044,9 +13044,6 @@ ww_slotsToCheck = { wrist = {"wrist"}, } -ww_factionsToTrack = {} -ww_professionsToTrack = {} - for item, info in pairs(EnchantItems) do if info.enchID and info.source ~= "Unavailable" then local class = info.class or "all" @@ -13086,7 +13083,6 @@ for item, info in pairs(EnchantItems) do end local reputations = info.rep or { ["none"] = 0 } for faction, reputation in pairs(reputations) do - ww_factionsToTrack[faction] = true if not EnchantOptions[class][slot][subslot][info.source][info.boa or false][faction] then EnchantOptions[class][slot][subslot][info.source][info.boa or false][faction] = IntervalTree.create() end @@ -13097,7 +13093,6 @@ for item, info in pairs(EnchantItems) do end local skills = info.skill or { ["none"] = 0 } for skill, level in pairs(skills) do - ww_professionsToTrack[skill] = true if not repInterval[skill] then repInterval[skill] = IntervalTree.create() end @@ -13166,7 +13161,6 @@ for item, info in pairs(EnchantSpells) do end local reputations = info.rep or { ["none"] = 0 } for faction, reputation in pairs(reputations) do - ww_factionsToTrack[faction] = true if not EnchantOptions[class][slot][subslot][info.source][info.boa or false][faction] then EnchantOptions[class][slot][subslot][info.source][info.boa or false][faction] = IntervalTree.create() end @@ -13177,7 +13171,6 @@ for item, info in pairs(EnchantSpells) do end local skills = info.skill or { ["none"] = 0 } for skill, level in pairs(skills) do - ww_professionsToTrack[skill] = true if not repInterval[skill] then repInterval[skill] = IntervalTree.create() end diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua index 34d2298..b5dd07c 100644 --- a/WeightsWatcher.lua +++ b/WeightsWatcher.lua @@ -291,9 +291,7 @@ local function populateProfessions() local professions = {} for _, idx in ipairs({ GetProfessions() }) do local name, _, rank = GetProfessionInfo(idx) - if ww_professionsToTrack[name] then - professions[name] = rank - end + professions[name] = rank end WeightsWatcher.player.professions = professions WeightsWatcher.ResetEnchantCache() @@ -305,14 +303,12 @@ local function populateReputations() for i = 1, GetNumFactions() do local name, _, standingID, barMin, barMax, barValue, _, _, isHeader, _, hasRep = GetFactionInfo(i) if not isHeader or hasRep then - if ww_factionsToTrack[name] then - rep[name] = { - level = standingID, - min = barMin, - max = barMax, - value = barValue, - } - end + rep[name] = { + level = standingID, + min = barMin, + max = barMax, + value = barValue, + } end end WeightsWatcher.player.reputation = rep -- 1.7.9.5