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 return true
end 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() function TillerTracker:UpdateData()
-- Get information on all quests completed -- 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 -- Create a table to store our current inventory of required mats
local inv_table = {} local inv_table = {}

View File

@@ -1,6 +1,6 @@
## Interface: 110205 ## Interface: 110205
## Title: Tiller Tracker ## Title: Tiller Tracker
## Version: 11.0.2 ## Version: 11.0.3
## Notes: Helps with the daily Tiller food quests ("A Dish for...") by keeping track of what quests have been completed that day, how many dishes need to be cooked, and what materials are required. ## Notes: Helps with the daily Tiller food quests ("A Dish for...") by keeping track of what quests have been completed that day, how many dishes need to be cooked, and what materials are required.
## Author: Amanoa ## Author: Amanoa
## SavedVariables: TillerTrackerDB ## SavedVariables: TillerTrackerDB