4 Commits

Author SHA1 Message Date
7ed4da43cd Update for 9.0.2 2020-11-17 12:55:28 -05:00
b6d78b1caf Update version 2020-11-16 17:59:58 -05:00
be513420c2 Fix API call 2020-11-16 17:59:48 -05:00
ecc6f258a2 Adjust level checks
Not sure if 10 is right but can adjust later
2020-11-16 17:59:29 -05:00
2 changed files with 7 additions and 7 deletions

View File

@@ -223,9 +223,9 @@ function TillerTracker:OnInitialize()
end
function TillerTracker:OnEnable()
-- Disable if the player is less than 90
if (UnitLevel("player") < 90) then
LDB.text = L["Disabled until level 90"]
-- Disable if the player is less than 10
if (UnitLevel("player") < 10) then
LDB.text = L["Disabled until level 10"]
-- Register to get player level events
self:RegisterEvent("PLAYER_LEVEL_UP")
@@ -244,7 +244,7 @@ function TillerTracker:OnEnable()
end
function TillerTracker:PLAYER_LEVEL_UP(event, newLevel)
if (tonumber(newLevel) >= 90) then
if (tonumber(newLevel) >= 10) then
-- Do the real enable
TillerTracker:OnEnableCore()
@@ -387,7 +387,7 @@ end
function TillerTracker:UpdateData()
-- 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
local inv_table = {}

View File

@@ -1,6 +1,6 @@
## Interface: 90001
## Interface: 90002
## Title: Tiller Tracker
## Version: 9.0.1
## Version: 9.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