Always track all professions and reputations
Kevin Lyles [01-02-14 - 05:03]
Always track all professions and reputations
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