Skip to content

Commit

Permalink
Core: Added tracking for most Zskera Vaults collectibles
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriun authored and rdw-software committed Aug 31, 2023
1 parent 81d0861 commit 51d3f65
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Core/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1802,6 +1802,48 @@ function R:OnLootReady(event, ...)
end
end

-- Handle opening various chests in Zskera Vaults
local vaultPets = {
"Bunbo",
"Berylmane",
"Brightfeather",
}
local vaultToys = {
"Obsidian Battle Horn",
}
local vaultChests = {
[L["Chain-Bound Strongbox"]] = true,
[L["Crystal Basket"]] = true,
[L["Hardened Chest"]] = true,
[L["Mindless Slime"]] = true,
[L["Searing Chest"]] = true,
[L["Hardened Strongbox"]] = true,
[L["Cart of Crushed Stone"]] = true,
[L["Hardshell Chest"]] = true,
[L["Titan Coffer"]] = true,
[L["Void-Bound Strongbox"]] = true,
[L["Inert Goo"]] = true,
[L["Mysterious Chest"]] = true,
[L["Supply Trunk"]] = true,
[L["Shattered Crystals"]] = true,
[L["Chest of Ice"]] = true,
[L["Forgotten Lockbox"]] = true,
[L["Slimy Goo"]] = true,
[L["Wind-Bound Strongbox"]] = true,
[L["Spun Webs"]] = true,
[L["Obsidian Grand Cache"]] = true,
[L["Frozen Coffer"]] = true,
}
if Rarity.isFishing and Rarity.isOpening and Rarity.lastNode and vaultChests[Rarity.lastNode] then
Rarity:Debug("Detected Opening on " .. Rarity.lastNode .. " (method = SPECIAL)")
for _, itemName in ipairs(vaultToys) do
addAttemptForItem(itemName, "items")
end
for _, itemName in ipairs(vaultPets) do
addAttemptForItem(itemName, "pets")
end
end

-- HANDLE FISHING
if Rarity.isFishing and Rarity.isOpening == false then
if Rarity.isPool then
Expand Down
22 changes: 22 additions & 0 deletions DB/Nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,26 @@ R.opennodes = {
[L["Sandworn Chest"]] = true,
[L["Expedition Scout's Pack"]] = true,
[L["Opera Chest"]] = true,
[L["Chain-Bound Strongbox"]] = true,
[L["Crystal Basket"]] = true,
[L["Hardened Chest"]] = true,
[L["Mindless Slime"]] = true,
[L["Searing Chest"]] = true,
[L["Hardened Strongbox"]] = true,
[L["Cart of Crushed Stone"]] = true,
[L["Frozen Coffer"]] = true,
[L["Hardshell Chest"]] = true,
[L["Titan Coffer"]] = true,
[L["Void-Bound Strongbox"]] = true,
[L["Inert Goo"]] = true,
[L["Mysterious Chest"]] = true,
[L["Supply Trunk"]] = true,
[L["Shattered Crystals"]] = true,
[L["Chest of Ice"]] = true,
[L["Forgotten Lockbox"]] = true,
[L["Slimy Goo"]] = true,
[L["Wind-Bound Strongbox"]] = true,
[L["Spun Webs"]] = true,
[L["Obsidian Grand Cache"]] = true,
[L["Frozen Coffer"]] = true,
}
33 changes: 33 additions & 0 deletions DB/Pets/Dragonflight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,39 @@ local dragonflightPets = {
chance = 7, -- Average over all the containers (not exactly accurate...)
coords = { { m = CONSTANTS.UIMAPIDS.ZARALEK_CAVERN } },
},
["Bunbo"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.PET,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Bunbo"],
itemId = 193363,
spellId = 375045,
creatureId = 189113,
chance = 20,
coords = { { m = CONSTANTS.UIMAPIDS.THE_FORBIDDEN_REACH, x = 28.8, y = 52.6 } },
},
["Berylmane"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.PET,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Berylmane"],
itemId = 193854,
spellId = 375553,
creatureId = 191287,
chance = 20,
coords = { { m = CONSTANTS.UIMAPIDS.THE_FORBIDDEN_REACH, x = 28.8, y = 52.6 } },
},
["Brightfeather"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.PET,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Brightfeather"],
itemId = 193835,
spellId = 375448,
creatureId = 189158,
chance = 20,
coords = { { m = CONSTANTS.UIMAPIDS.THE_FORBIDDEN_REACH, x = 28.8, y = 52.6 } },
},
}

Rarity.ItemDB.MergeItems(Rarity.ItemDB.pets, dragonflightPets)
10 changes: 10 additions & 0 deletions DB/Toys/Dragonflight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,16 @@ local dragonflightToys = {
{ m = CONSTANTS.UIMAPIDS.THE_PRIMALIST_FUTURE },
},
},
["Obsidian Battle Horn"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.ITEM,
isToy = true,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Obsidian Battle Horn"],
itemId = 204687,
chance = 50,
coords = { { m = CONSTANTS.UIMAPIDS.THE_FORBIDDEN_REACH, x = 28.8, y = 52.6 } },
},
["Everlasting Horn of Lavaswimming"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.ITEM,
Expand Down
26 changes: 26 additions & 0 deletions Locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,32 @@ L["This toy is obtained at the end of the Siege on Dragonbane Keep event. The dr
L["Opera Chest"] = true
L["Holoviewer: The Lady of Dreams"] = true
L["Holoviewer: The Timeless One"] = true
L["Brightfeather"] = true
L["Berylmane"] = true
L["Bunbo"] = true
L["Chain-Bound Strongbox"] = true
L["Crystal Basket"] = true
L["Hardened Chest"] = true
L["Mindless Slime"] = true
L["Searing Chest"] = true
L["Hardened Strongbox"] = true
L["Cart of Crushed Stone"] = true
L["Frozen Coffer"] = true
L["Hardshell Chest"] = true
L["Titan Coffer"] = true
L["Void-Bound Strongbox"] = true
L["Inert Goo"] = true
L["Mysterious Chest"] = true
L["Supply Trunk"] = true
L["Shattered Crystals"] = true
L["Chest of Ice"] = true
L["Forgotten Lockbox"] = true
L["Slimy Goo"] = true
L["Wind-Bound Strongbox"] = true
L["Spun Webs"] = true
L["Obsidian Grand Cache"] = true
L["Frozen Coffer"] = true
L["Obsidian Battle Horn"] = 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 51d3f65

Please sign in to comment.