From 296c95b3a2348bf454bddc693e21203cc7e06100 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Tue, 25 Nov 2025 09:55:08 -0500 Subject: [PATCH] Try to work with MoP classic --- TillerTracker.lua | 18 +++++++++++++++++- TillerTracker.toc | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/TillerTracker.lua b/TillerTracker.lua index 979a700..bd796fe 100644 --- a/TillerTracker.lua +++ b/TillerTracker.lua @@ -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 = {} diff --git a/TillerTracker.toc b/TillerTracker.toc index 90afb74..2164c33 100644 --- a/TillerTracker.toc +++ b/TillerTracker.toc @@ -1,6 +1,6 @@ ## Interface: 110205 ## 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. ## Author: Amanoa ## SavedVariables: TillerTrackerDB