9 Commits

Author SHA1 Message Date
a80d3ded01 Bump version 2022-10-31 15:24:01 -04:00
5b441d1dee Update LibDataBroker external 2022-10-31 15:19:54 -04:00
6afc62a355 Update for Dragonflight 2022-10-31 14:56:24 -04:00
3fd9daf009 Defer updates until fully loaded 2020-12-16 15:31:30 -05:00
c30f0fe3ae Fix localization issue 2020-11-27 09:58:20 -05:00
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
4 changed files with 26 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ externals:
url: https://repos.wowace.com/wow/libqtip-1-0
tag: latest
Libs/LibDataBroker-1.1:
url: git://github.com/tekkub/libdatabroker-1-1.git
url: https://github.com/tekkub/libdatabroker-1-1
tag: latest
Libs/AceLocale-3.0:
url: https://repos.wowace.com/wow/ace3/trunk/AceLocale-3.0

View File

@@ -34,7 +34,7 @@ L["Need"] = true
L["Gather:"] = true
L["Done"] = true
L["Disabled until level 90"] = true
L["Disabled until level 10"] = true
L["Best Friends with everyone"] = true

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()
@@ -363,13 +363,17 @@ local function SetSort(cell, sort)
private.db.global.sort_dir = "ASC"
end
if not private.loaded then
return
end
TillerTracker:UpdateData()
TillerTracker:UpdateTooltip()
end
function TillerTracker:ReputationDone(reputationId)
-- Get the reputation information
local _, friendRep = GetFriendshipReputation(reputationId)
local friendRep = C_GossipInfo.GetFriendshipReputation(reputationId).standing
-- Done if over exalted
return (friendRep > 42000)
@@ -387,7 +391,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 = {}
@@ -648,6 +652,10 @@ function LDB.OnEnter(self)
end
function TillerTracker:QUEST_LOG_UPDATE()
if not private.loaded then
return
end
TillerTracker:UpdateData()
TillerTracker:UpdateText()
@@ -659,6 +667,10 @@ function TillerTracker:QUEST_LOG_UPDATE()
end
function TillerTracker:BAG_UPDATE()
if not private.loaded then
return
end
TillerTracker:UpdateData()
TillerTracker:UpdateText()
@@ -718,6 +730,10 @@ end
function TillerTracker:SetPlanAhead(value)
private.db.global.plan_ahead = value
if not private.loaded then
return
end
TillerTracker:UpdateData()
TillerTracker:UpdateText()

View File

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