Try to work with MoP classic

This commit is contained in:
2025-11-25 09:55:08 -05:00
parent 8ce33b2a2d
commit 296c95b3a2
2 changed files with 18 additions and 2 deletions

View File

@@ -375,9 +375,25 @@ function TillerTracker:AllReputationsDone()
return true
end
function TillerTracker:GetAllCompletedQuestIDs()
if C_QuestLog.GetAllCompletedQuestIDs then
return C_QuestLog.GetAllCompletedQuestIDs()
elseif GetQuestsCompleted then
local completedQuestIds = {}
local questsCompleted = GetQuestsCompleted()
for quest_id in pairs(questsCompleted) do
table.insert(completedQuestIds, quest_id)
end
return completedQuestIds
end
end
function TillerTracker:UpdateData()
-- Get information on all quests completed
local questsCompleted = C_QuestLog.GetAllCompletedQuestIDs()
local questsCompleted = TillerTracker:GetAllCompletedQuestIDs()
-- Create a table to store our current inventory of required mats
local inv_table = {}