Skip to content

Commit

Permalink
Merge pull request #683 from cyriun/10.2-items
Browse files Browse the repository at this point in the history
Add Dreamseed Cache mounts to the DB
  • Loading branch information
rdw-software authored Nov 12, 2023
2 parents e716e2b + f4765ce commit d159530
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Core/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1975,6 +1975,10 @@ function R:OnLootReady(event, ...)
end
end

if Rarity.isOpening and Rarity.lastNode == L["Dreamseed Cache"] then
Rarity:OnDreamseedCacheOpened()
end

-- Handle herb gathering on Argus (Fel Lasher)
if
Rarity.relevantSpells[Rarity.previousSpell] == "Herb Gathering" -- Gathered a herbalism node
Expand Down Expand Up @@ -2109,5 +2113,22 @@ function Rarity:OnDisgustingVatFished()
addAttemptForItem("Emmah", "pets")
end

local dreamseedMounts = {
"Reins of the Winter Night Dreamsaber",
"Reins of the Snowfluff Dreamtalon",
"Reins of the Evening Sun Dreamsaber",
"Reins of the Blossoming Dreamstag",
"Reins of the Springtide Dreamtalon",
"Reins of the Morning Flourish Dreamsaber",
"Reins of the Rekindled Dreamstag",
}

function Rarity:OnDreamseedCacheOpened()
Rarity:Debug("Detected Opening on Dreamseed Cache")
for mount, _ in pairs(dreamseedMounts) do
addAttemptForItem(mount, "mounts")
end
end

Rarity.EventHandlers = EventHandlers
return EventHandlers
77 changes: 77 additions & 0 deletions DB/Mounts/Dragonflight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,83 @@ local dragonflightMounts = {
sourceText = L["This item can also be purchased from a vendor."],
coords = { { m = CONSTANTS.UIMAPIDS.THALDRASZUS } },
},
--10.2
["Reins of the Winter Night Dreamsaber"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Reins of the Winter Night Dreamsaber"],
spellId = 424476,
itemId = 210059,
chance = 10,
coords = { { m = CONSTANTS.UIMAPIDS.THE_EMERALD_DREAM } },
},
["Reins of the Snowfluff Dreamtalon"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Reins of the Snowfluff Dreamtalon"],
spellId = 427043,
itemId = 210775,
chance = 10,
sourceText = L["This item can also be purchased from a vendor."],
coords = { { m = CONSTANTS.UIMAPIDS.THE_EMERALD_DREAM } },
},
["Reins of the Evening Sun Dreamsaber"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Reins of the Evening Sun Dreamsaber"],
spellId = 424479,
itemId = 210058,
chance = 10,
sourceText = L["This item can also be purchased from a vendor."],
coords = { { m = CONSTANTS.UIMAPIDS.THE_EMERALD_DREAM } },
},
["Reins of the Blossoming Dreamstag"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Reins of the Blossoming Dreamstag"],
spellId = 423871,
itemId = 209947,
chance = 10,
sourceText = L["This item can also be purchased from a vendor."],
coords = { { m = CONSTANTS.UIMAPIDS.THE_EMERALD_DREAM } },
},
["Reins of the Springtide Dreamtalon"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Reins of the Springtide Dreamtalon"],
spellId = 426955,
itemId = 210769,
chance = 10,
sourceText = L["This item can also be purchased from a vendor."],
coords = { { m = CONSTANTS.UIMAPIDS.THE_EMERALD_DREAM } },
},
["Reins of the Morning Flourish Dreamsaber"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Reins of the Morning Flourish Dreamsaber"],
spellId = 424482,
itemId = 210057,
chance = 10,
sourceText = L["This item can also be purchased from a vendor."],
coords = { { m = CONSTANTS.UIMAPIDS.THE_EMERALD_DREAM } },
},
["Reins of the Rekindled Dreamstag"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Reins of the Rekindled Dreamstag"],
spellId = 423877,
itemId = 209950,
chance = 10,
sourceText = L["This item can also be purchased from a vendor."],
coords = { { m = CONSTANTS.UIMAPIDS.THE_EMERALD_DREAM } },
},
}

Rarity.ItemDB.MergeItems(Rarity.ItemDB.mounts, dragonflightMounts)
1 change: 1 addition & 0 deletions DB/Nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,5 @@ R.opennodes = {
[L["Spun Webs"]] = true,
[L["Obsidian Grand Cache"]] = true,
[L["Frozen Coffer"]] = true,
[L["Dreamseed Cache"]] = true,
}
8 changes: 8 additions & 0 deletions Locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2044,6 +2044,14 @@ L["Chest of Massive Gains"] = true
L["Use %s before opening %s, which spawns after %s is defeated."] = true
L["Brullo the Strong"] = true
L["Rocks on the Rocks"] = true
L["Reins of the Winter Night Dreamsaber"] = true
L["Reins of the Snowfluff Dreamtalon"] = true
L["Reins of the Evening Sun Dreamsaber"] = true
L["Reins of the Blossoming Dreamstag"] = true
L["Reins of the Springtide Dreamtalon"] = true
L["Reins of the Morning Flourish Dreamsaber"] = true
L["Reins of the Rekindled Dreamstag"] = true
L["Dreamseed Cache"] = true

--[[
The rest of this file is auto-generated using the WoWAce localization application.
Expand Down

0 comments on commit d159530

Please sign in to comment.