Skip to content

Commit

Permalink
Core: Added tracking for Opera Chest (Holoviewers)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriun authored and rdw-software committed Aug 12, 2023
1 parent 7ee1b8a commit 986853c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Core/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,23 @@ function R:OnEvent(event, ...)
end
end

-- Handle opening Opera Chest (Holoviewers)
if Rarity.isFishing and Rarity.isOpening and Rarity.lastNode and (Rarity.lastNode == L["Opera Chest"]) then
local names = { "Holoviewer: The Timeless One", "Holoviewer: The Lady of Dreams" }
Rarity:Debug("Detected Opening on " .. L["Opera Chest"] .. " (method = SPECIAL)")
for _, name in pairs(names) do
local v = self.db.profile.groups.items[name]
if v and type(v) == "table" and v.enabled ~= false then
if v.attempts == nil then
v.attempts = 1
else
v.attempts = v.attempts + 1
end
self:OutputAttempts(v)
end
end
end

-- HANDLE FISHING
if Rarity.isFishing and Rarity.isOpening == false then
if Rarity.isPool then
Expand Down
1 change: 1 addition & 0 deletions DB/Nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,5 @@ R.opennodes = {
[L["Mawsworn Supply Chest"]] = true,
[L["Sandworn Chest"]] = true,
[L["Expedition Scout's Pack"]] = true,
[L["Opera Chest"]] = true,
}
1 change: 1 addition & 0 deletions Locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1989,6 +1989,7 @@ L["Combine 50 Leftover Elemental Slime to create the Gooey Snailemental."] = tru
L["Froststone Vault Primal Storm"] = true
L["Everlasting Horn of Lavaswimming"] = true
L["This toy is obtained at the end of the Siege on Dragonbane Keep event."] = true
L["Opera Chest"] = true
L["Holoviewer: The Lady of Dreams"] = true
L["Holoviewer: The Timeless One"] = true
--[[
Expand Down

0 comments on commit 986853c

Please sign in to comment.