Skip to content

Commit

Permalink
Add Hallowfall Fishing Derby
Browse files Browse the repository at this point in the history
  • Loading branch information
madcowfred committed Oct 5, 2024
1 parent 863ec20 commit 56984f2
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ChoreTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local LSM = LibStub('LibSharedMedia-3.0')
local DEFAULT_SECTION_ORDER = {
'timers',
'events',
'hallowfallFishingDerby',
'delves',
'warWithin',
'professions',
Expand Down Expand Up @@ -135,6 +136,24 @@ function Addon:OnInitialize()

self.db = ADB:New('ChoreTrackerDB', defaultDb, true) -- default global profile

-- Fix section order
local ughSections = {}
local seenSections = {}
for _, section in ipairs(self.db.profile.general.order.sections) do
if not seenSections[section] then
seenSections[section] = true
tinsert(ughSections, section)
end
end

for _, section in ipairs(DEFAULT_SECTION_ORDER) do
if not seenSections[section] then
tinsert(ughSections, 0, section)
end
end

self.db.profile.general.order.sections = ughSections

-- Clean up old weekly data
local cutoff = time() - (14 * 24 * 60 * 60)
for weekEnd, _ in pairs(self.db.global.questWeeks) do
Expand Down
1 change: 1 addition & 0 deletions ChoreTracker.toc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ChoreTracker.lua
Data\Professions.lua
Data\Chores\Dragonflight.lua
Data\Chores\Events.lua
Data\Chores\HallowfallFishingDerby.lua
Data\Chores\PvP.lua
Data\Chores\The_War_Within.lua
Data\Chores\Professions\Alchemy.lua
Expand Down
64 changes: 64 additions & 0 deletions Data/Chores/HallowfallFishingDerby.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
local _, Addon = ...
local L = Addon.L


Addon.data.chores.choresHallowfallFishingDerby = {
key = 'hallowfallFishingDerby',
name = L['section:hallowfallFishingDerby'],
order = 123,
defaultEnabled = false,
filter = function()
local timeInfo = C_DateAndTime.GetCalendarTimeFromEpoch(time() * 1000000)
return timeInfo ~= nil and timeInfo.weekday == 7
end,
categories = {
{
key = 'event',
quests = {
{
key = 'derby',
entries = {
{ quest = 82778 },
{ quest = 83529 },
{ quest = 83530 },
{ quest = 83531 },
{ quest = 83532 },
}
},
},
},
{
key = 'fish',
drops = {
{
key = 'fish',
entries = {
-- Common
{ quest = 82920, item=220137 }, -- Bismuth Bitterling
{ quest = 82918, item=220135 }, -- Bloody Perch
{ quest = 82919, item=220136 }, -- Crystalline Sturgeon
{ quest = 82947, item = 220134 }, -- Dilly-Dally Dace
-- Uncommon
{ quest = 82928, item=220145 }, -- Arathor Hammerfish
{ quest = 82926, item=220143 }, -- Dornish Pike
{ quest = 82923, item=222533 }, -- Goldengill Trout
{ quest = 82930, item=220147 }, -- Kaheti Slum Shark
{ quest = 82921, item=220138 }, -- Nibbling Minnow
{ quest = 82931, item=220148 }, -- Pale Huskfish
{ quest = 82925, item=220142 }, -- Quiet River Bass
{ quest = 82927, item=220144 }, -- Roaring Anglerseeker
{ quest = 82924, item=220141 }, -- Specular Rainbowfish
{ quest = 82922, item=220139 }, -- Whispering Stargazer
-- Rare
{ quest = 82936, item=220153 }, -- Awoken Coelacanth
{ quest = 82935, item=220152 }, -- Cursed Ghoulfish
{ quest = 82934, item=220151 }, -- Queen's Lurefish
{ quest = 82929, item=220146 }, -- Regal Dottyback
{ quest = 82932, item=220149 }, -- Sanguine Dogfish
{ quest = 82933, item=220150 }, -- Spiked Sea Raven
},
},
},
},
},
}
5 changes: 5 additions & 0 deletions Locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ L['section:chores'] = 'Chores'
L['section:delves'] = 'Delves'
L['section:drops'] = 'Drops'
L['section:events'] = 'Events'
L['section:hallowfallFishingDerby'] = 'Hallowfall Fishing Derby'
L['section:professions'] = 'Professions'
L['section:pvp'] = 'PvP'
L['section:quests'] = 'Quests'
Expand All @@ -53,6 +54,7 @@ L['category:brawls'] = 'Brawls'
L['category:catchAndRelease'] = 'Catch and Release'
L['category:dailies'] = 'Dailies'
L['category:event'] = 'Event'
L['category:fish'] = 'Fish'
L['category:holidays'] = 'Weekly Holidays'
L['category:holidays2'] = 'Holidays'
L['category:limited'] = 'Limited Time'
Expand Down Expand Up @@ -83,6 +85,9 @@ L['chore:warWithin:patch_11_0_0:quests:spreadingTheLight'] = 'Spreading the Ligh
L['chore:warWithin:patch_11_0_0:quests:theaterTroupe'] = 'Theater Troupe'
L['chore:warWithin:patch_11_0_0:quests:worldBoss'] = 'World Boss'

L['chore:hallowfallFishingDerby:event:quests:derby'] = 'Quest'
L['chore:hallowfallFishingDerby:fish:drops:fish'] = 'Fish'

L['chore:dragonflight:catchAndRelease:quests:releaseAileron'] = 'Aileron Seamoth'
L['chore:dragonflight:catchAndRelease:quests:releaseCerulean'] = 'Cerulean Spinefish'
L['chore:dragonflight:catchAndRelease:quests:releaseIslefin'] = 'Islefin Dorado'
Expand Down
1 change: 1 addition & 0 deletions Modules/Display.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ local OBJECTIVE_BRING_X = Addon.L['objective:bring_x']
local SECTION_TO_CATEGORIES = {
dragonflight = { 'choresDragonflight' },
events = { 'choresEvents' },
hallowfallFishingDerby = { 'choresHallowfallFishingDerby' },
pvp = { 'choresPvp' },
warWithin = { 'choresWarWithin' },
professions = {
Expand Down
1 change: 1 addition & 0 deletions Modules/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ function Module:CreateOptions()
order = newOrder(),
args = {
choresWarWithin = self:GetChoreOptions(Addon.data.chores.choresWarWithin, WIDTH_3_PER_ROW, true),
choresHallowfallFishingDerby = self:GetChoreOptions(Addon.data.chores.choresHallowfallFishingDerby, WIDTH_3_PER_ROW, true),
choresDragonflight = self:GetChoreOptions(Addon.data.chores.choresDragonflight, WIDTH_3_PER_ROW, true),
choresEvents = self:GetChoreOptions(Addon.data.chores.choresEvents, WIDTH_3_PER_ROW, true),
choresPvp = self:GetChoreOptions(Addon.data.chores.choresPvp, WIDTH_3_PER_ROW, true),
Expand Down

0 comments on commit 56984f2

Please sign in to comment.