From b427b9ef8d6d17ca68f553a08d37380d01406a41 Mon Sep 17 00:00:00 2001 From: Anch Date: Thu, 4 Aug 2022 12:43:05 +1200 Subject: [PATCH] fixed crafting --- AtlasLoot/Core/AtlasLoot.lua | 11 +- AtlasLoot/Core/AtlasLoot.xml | 3 +- AtlasLoot/Core/Atlasloot_Maps.lua | 34 ++ AtlasLoot/Core/HooksandAPI.lua | 297 ------------------ .../AtlaslootDefaultFrameCreate.lua | 28 +- AtlasLoot/DefaultFrame/Atlasloot_Maps.lua | 0 AtlasLoot_BurningCrusade/burningcrusade.lua | 1 + 7 files changed, 60 insertions(+), 314 deletions(-) create mode 100644 AtlasLoot/Core/Atlasloot_Maps.lua delete mode 100644 AtlasLoot/Core/HooksandAPI.lua delete mode 100644 AtlasLoot/DefaultFrame/Atlasloot_Maps.lua diff --git a/AtlasLoot/Core/AtlasLoot.lua b/AtlasLoot/Core/AtlasLoot.lua index 3999b81..7bc901a 100644 --- a/AtlasLoot/Core/AtlasLoot.lua +++ b/AtlasLoot/Core/AtlasLoot.lua @@ -472,7 +472,6 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame, tablenum) local itemName, itemLink, itemQuality, itemLevel, itemType, itemSubType, itemCount, itemEquipLoc, itemTexture, itemColor; local iconFrame, nameFrame, extraFrame, itemButton; local text, extra; - local wlPage, wlPageMax = 1, 1; local isItem; local spellName, spellIcon; @@ -522,7 +521,11 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame, tablenum) --Check for a valid object (that it exists, and that it has a name if(dataSource[dataID][tablenum][i] ~= nil and dataSource[dataID][tablenum][i][4] ~= "") then local itemDif = ItemindexID; - IDfound = AL_FindId(dataSource[dataID][tablenum][i][2], min(AtlasLoot_Difficulty:getMaxDifficulty(dataSource[dataID].Type), itemDif)) or dataSource[dataID][tablenum][i][2]; + if type(ItemindexID) == "string" then + IDfound = dataSource[dataID][tablenum][i][2]; + else + IDfound = AL_FindId(dataSource[dataID][tablenum][i][2], min(AtlasLoot_Difficulty:getMaxDifficulty(dataSource[dataID].Type), itemDif)) or dataSource[dataID][tablenum][i][2]; + end if string.sub(IDfound, 1, 1) == "s" then isItem = false; IDfound = AL_FindId(dataSource[dataID][tablenum][i][2], itemDif) or dataSource[dataID][tablenum][i][2]; @@ -988,7 +991,9 @@ function AtlasLoot_QueryLootPage() local item = Item:CreateFromID(queryitem); if not (item:GetInfo()) then item:ContinueOnLoad(function(itemId) - AtlasLoot:callShowloot(); + if i == 30 then + AtlasLoot:callShowloot(); + end end) end end diff --git a/AtlasLoot/Core/AtlasLoot.xml b/AtlasLoot/Core/AtlasLoot.xml index 6d18b3d..6e47d48 100644 --- a/AtlasLoot/Core/AtlasLoot.xml +++ b/AtlasLoot/Core/AtlasLoot.xml @@ -13,8 +13,7 @@