Skip to content

Commit

Permalink
Merge pull request #606 from cyriun/vault-toys
Browse files Browse the repository at this point in the history
Add Holoviewer toys to the database
  • Loading branch information
rdw-software authored Aug 12, 2023
2 parents f26ff21 + 986853c commit f8ffdbe
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
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,
}
20 changes: 20 additions & 0 deletions DB/Toys/Dragonflight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,26 @@ local dragonflightToys = {
sourceText = L["This toy is obtained at the end of the Siege on Dragonbane Keep event."],
coords = { { m = CONSTANTS.UIMAPIDS.THE_WAKING_SHORES, x = 24.2, y = 70.1 } },
},
["Holoviewer: The Lady of Dreams"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.ITEM,
isToy = true,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Holoviewer: The Lady of Dreams"],
itemId = 204257,
chance = 5,
coords = { { m = CONSTANTS.UIMAPIDS.THE_FORBIDDEN_REACH, x = 28.8, y = 52.6 } },
},
["Holoviewer: The Timeless One"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.ITEM,
isToy = true,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Holoviewer: The Timeless One"],
itemId = 204262,
chance = 5,
coords = { { m = CONSTANTS.UIMAPIDS.THE_FORBIDDEN_REACH, x = 28.8, y = 52.6 } },
},
}

Rarity.ItemDB.MergeItems(Rarity.ItemDB.toys, dragonflightToys)
4 changes: 3 additions & 1 deletion Locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1989,7 +1989,9 @@ 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
--[[
The rest of this file is auto-generated using the WoWAce localization application.
Please go to http://www.wowace.com/projects/rarity/localization/ to update translations.
Expand Down

0 comments on commit f8ffdbe

Please sign in to comment.