mirror of
https://github.com/ckaczor/TillerTracker.git
synced 2026-02-05 09:45:38 -05:00
Compare commits
3 Commits
9.0.1-alph
...
9.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
| b6d78b1caf | |||
| be513420c2 | |||
| ecc6f258a2 |
@@ -223,9 +223,9 @@ function TillerTracker:OnInitialize()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function TillerTracker:OnEnable()
|
function TillerTracker:OnEnable()
|
||||||
-- Disable if the player is less than 90
|
-- Disable if the player is less than 10
|
||||||
if (UnitLevel("player") < 90) then
|
if (UnitLevel("player") < 10) then
|
||||||
LDB.text = L["Disabled until level 90"]
|
LDB.text = L["Disabled until level 10"]
|
||||||
|
|
||||||
-- Register to get player level events
|
-- Register to get player level events
|
||||||
self:RegisterEvent("PLAYER_LEVEL_UP")
|
self:RegisterEvent("PLAYER_LEVEL_UP")
|
||||||
@@ -244,7 +244,7 @@ function TillerTracker:OnEnable()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function TillerTracker:PLAYER_LEVEL_UP(event, newLevel)
|
function TillerTracker:PLAYER_LEVEL_UP(event, newLevel)
|
||||||
if (tonumber(newLevel) >= 90) then
|
if (tonumber(newLevel) >= 10) then
|
||||||
-- Do the real enable
|
-- Do the real enable
|
||||||
TillerTracker:OnEnableCore()
|
TillerTracker:OnEnableCore()
|
||||||
|
|
||||||
@@ -387,7 +387,7 @@ end
|
|||||||
|
|
||||||
function TillerTracker:UpdateData()
|
function TillerTracker:UpdateData()
|
||||||
-- Get information on all quests completed
|
-- Get information on all quests completed
|
||||||
local questsCompleted = GetQuestsCompleted()
|
local questsCompleted = C_QuestLog.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: 90001
|
## Interface: 90001
|
||||||
## Title: Tiller Tracker
|
## Title: Tiller Tracker
|
||||||
## Version: 9.0.1
|
## Version: 9.0.2
|
||||||
## 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