mirror of
https://github.com/ckaczor/TillerTracker.git
synced 2026-01-13 17:23:10 -05:00
Try to work with MoP classic
This commit is contained in:
@@ -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 = {}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user