update to version 7.3.18 (#11)

* Merged Magisters Terrace - Kael'thas Sunstriders normal/heroic pages

* update to build 7.3.18
This commit is contained in:
Anch
2024-08-29 04:38:01 +12:00
committed by GitHub
parent 550df8c842
commit e04717d340
27 changed files with 26118 additions and 24888 deletions
+34
View File
@@ -0,0 +1,34 @@
local function CheckIfEmptyTable(table)
if next(table) then
return false
else
return true
end
end
local databaseUpdated
--Updates the ItemIDsDatabase with any missing or incorrect items
function LoadItemIDsDatabase()
if databaseUpdated then return end
--loads any items in the saved varriables cache
if AtlasLootItemCache and not CheckIfEmptyTable(AtlasLootItemCache) then
for normalID, item in pairs(AtlasLootItemCache) do
for itemDif, itemID in pairs(item) do
ItemIDsDatabase[normalID] = ItemIDsDatabase[normalID] or {}
ItemIDsDatabase[normalID][itemDif] = itemID
end
end
end
-- loads ids that have been manuely corrected
if ItemIDManuelCorrections then
for normalID, item in pairs(ItemIDManuelCorrections) do
for itemDif, itemID in pairs(item) do
ItemIDsDatabase[normalID] = ItemIDsDatabase[normalID] or {}
ItemIDsDatabase[normalID][itemDif] = itemID
end
end
end
ItemIDManuelCorrections = nil
collectgarbage("collect")
databaseUpdated = true
end