mirror of
https://github.com/ckaczor/TillerTracker.git
synced 2026-01-14 01:25:42 -05:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a80d3ded01 | |||
| 5b441d1dee | |||
| 6afc62a355 | |||
| 3fd9daf009 | |||
| c30f0fe3ae | |||
| 7ed4da43cd | |||
| b6d78b1caf | |||
| be513420c2 | |||
| ecc6f258a2 | |||
| d99c214111 | |||
| 294bb6dede |
28
.pkgmeta
28
.pkgmeta
@@ -2,41 +2,41 @@
|
||||
|
||||
externals:
|
||||
Libs/LibStub:
|
||||
url: svn://svn.wowace.com/wow/libstub/mainline/trunk
|
||||
url: https://repos.wowace.com/wow/libstub/trunk
|
||||
tag: latest
|
||||
Libs/CallbackHandler-1.0:
|
||||
url: svn://svn.wowace.com/wow/callbackhandler/mainline/trunk/CallbackHandler-1.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/CallbackHandler-1.0
|
||||
tag: latest
|
||||
Libs/LibQTip-1.0:
|
||||
url: svn://svn.wowace.com/wow/libqtip-1-0/mainline/trunk
|
||||
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: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceLocale-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceLocale-3.0
|
||||
tag: latest
|
||||
Libs/AceConsole-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConsole-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceConsole-3.0
|
||||
tag: latest
|
||||
Libs/AceAddon-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceAddon-3.0
|
||||
tag: latest
|
||||
Libs/AceEvent-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceEvent-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceEvent-3.0
|
||||
tag: latest
|
||||
Libs/AceTimer-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceTimer-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceTimer-3.0
|
||||
tag: latest
|
||||
Libs/AceConfig-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConfig-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceConfig-3.0
|
||||
tag: latest
|
||||
Libs/AceDB-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceDB-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceDB-3.0
|
||||
tag: latest
|
||||
Libs/AceGUI-3.0:
|
||||
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0
|
||||
url: https://repos.wowace.com/wow/ace3/trunk/AceGUI-3.0
|
||||
tag: latest
|
||||
Libs/LibDBIcon-1.0:
|
||||
url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0
|
||||
tag: latest
|
||||
url: https://repos.wowace.com/wow/libdbicon-1-0/trunk/LibDBIcon-1.0
|
||||
tag: latest
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -344,9 +344,10 @@ local function Entry_OnMouseUp(frame, info, button)
|
||||
return
|
||||
end
|
||||
|
||||
local m = TomTom:GetCurrentPlayerPosition()
|
||||
local location = info["LOCATION"]
|
||||
|
||||
_G.TomTom:AddMFWaypoint(807, nil, location[1] / 100, location[2] / 100, { title = info["NAME"] })
|
||||
_G.TomTom:AddWaypoint(m, location[1] / 100, location[2] / 100, { title = info["NAME"] })
|
||||
end
|
||||
end
|
||||
|
||||
@@ -362,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)
|
||||
@@ -386,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 = {}
|
||||
@@ -647,6 +652,10 @@ function LDB.OnEnter(self)
|
||||
end
|
||||
|
||||
function TillerTracker:QUEST_LOG_UPDATE()
|
||||
if not private.loaded then
|
||||
return
|
||||
end
|
||||
|
||||
TillerTracker:UpdateData()
|
||||
TillerTracker:UpdateText()
|
||||
|
||||
@@ -658,6 +667,10 @@ function TillerTracker:QUEST_LOG_UPDATE()
|
||||
end
|
||||
|
||||
function TillerTracker:BAG_UPDATE()
|
||||
if not private.loaded then
|
||||
return
|
||||
end
|
||||
|
||||
TillerTracker:UpdateData()
|
||||
TillerTracker:UpdateText()
|
||||
|
||||
@@ -717,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()
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
## Interface: 90001
|
||||
## Interface: 100000
|
||||
## Title: Tiller Tracker
|
||||
## Version: 9.0.0
|
||||
## 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
|
||||
|
||||
Reference in New Issue
Block a user