2 Commits

Author SHA1 Message Date
296c95b3a2 Try to work with MoP classic 2025-11-25 09:55:08 -05:00
8ce33b2a2d Fix version 2025-11-25 09:19:11 -05:00
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 = {}

View File

@@ -1,6 +1,6 @@
## Interface: 110205
## Title: Tiller Tracker
## Version: 11.0.1
## 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.
## Author: Amanoa
## SavedVariables: TillerTrackerDB