ItemDB Optimization and Search Fix
This commit is contained in:
@@ -148,8 +148,8 @@ AtlasLoot_Difficulty = {
|
||||
MythicPlus = {5, 6, 7, 8, 9, 10, 11, 12, 13, 14};
|
||||
|
||||
--Helper Enums to Set min and max difficulties
|
||||
MIN_DIF = 8;
|
||||
MAX_DIF = 9;
|
||||
MIN_DIF = 18;
|
||||
MAX_DIF = 19;
|
||||
}
|
||||
--AtlasLoot_Difficulty was too long to write for enum reasons
|
||||
AL_Dif = AtlasLoot_Difficulty;
|
||||
@@ -884,11 +884,17 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
|
||||
|
||||
|
||||
--Check if difficulties exist, if so show difficulty select buttons
|
||||
if (AtlasLoot_Data[dataID].Dif ~= nil) then
|
||||
if (dataID ~= "SearchResult" and AtlasLoot_Data[dataID].Dif ~= nil) then
|
||||
AtlasLootMythicButton.difficulty_type = AtlasLoot_Data[dataID].Type or "Dungeon"
|
||||
AtlasLootMythicButton:Show();
|
||||
AtlasLoot_DifficultySelect:Show();
|
||||
end
|
||||
|
||||
if (dataID == "SearchResult" and dataSource[dataID].Dif ~= nil) then
|
||||
AtlasLootMythicButton.difficulty_type = dataSource[dataID].Type or "Dungeon"
|
||||
AtlasLootMythicButton:Show();
|
||||
AtlasLoot_DifficultySelect:Show();
|
||||
end
|
||||
|
||||
-- Show the Filter Check-Box
|
||||
if dataID ~= "WishList" and dataID ~= "SearchResult" and dataSource_backup ~= "AtlasLootCrafting" then
|
||||
@@ -1621,6 +1627,7 @@ function QueryItems(instance, difficulty, expansion)
|
||||
for b = 1, #AtlasLoot_DewDropDown_SubTables[inst] do
|
||||
local boss = AtlasLoot_DewDropDown_SubTables[inst][b][2];
|
||||
if(AtlasLoot_Data[boss] ~= nil and AtlasLoot_Data[boss].Type ~= nil and AtlasLoot_Data[boss].Type == instance) then
|
||||
print("Query for "..boss.." in instance "..inst.." started");
|
||||
local n = 1;
|
||||
local querytime = 0;
|
||||
local now = 0;
|
||||
@@ -1642,6 +1649,7 @@ function QueryItems(instance, difficulty, expansion)
|
||||
end
|
||||
elseif AtlasLoot_DewDropDown[_men][ex_sel[expansion]][i][1][3] == "Table" then
|
||||
if(AtlasLoot_Data[inst] ~= nil and AtlasLoot_Data[inst].Type ~= nil and AtlasLoot_Data[inst].Type == instance) then
|
||||
print("Query for "..inst.." in instance "..inst.." started");
|
||||
local n = 1;
|
||||
local querytime = 0;
|
||||
local now = 0;
|
||||
@@ -1662,5 +1670,4 @@ function QueryItems(instance, difficulty, expansion)
|
||||
end
|
||||
end
|
||||
end
|
||||
print("You may need to reload your UI to finalize the Query")
|
||||
end
|
||||
Reference in New Issue
Block a user