From f4765ce6fb9b0ed3522fef2a290e6458459928d1 Mon Sep 17 00:00:00 2001 From: cyriun Date: Sat, 11 Nov 2023 16:21:43 +1100 Subject: [PATCH] Core: Implemented tracking for Dreamseed Cache mounts --- Core/EventHandlers.lua | 21 +++++++++++ DB/Mounts/Dragonflight.lua | 77 ++++++++++++++++++++++++++++++++++++++ DB/Nodes.lua | 1 + Locales.lua | 8 ++++ 4 files changed, 107 insertions(+) diff --git a/Core/EventHandlers.lua b/Core/EventHandlers.lua index f8041b70..c1757f3a 100644 --- a/Core/EventHandlers.lua +++ b/Core/EventHandlers.lua @@ -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 @@ -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 diff --git a/DB/Mounts/Dragonflight.lua b/DB/Mounts/Dragonflight.lua index c489e380..ecea329f 100644 --- a/DB/Mounts/Dragonflight.lua +++ b/DB/Mounts/Dragonflight.lua @@ -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) diff --git a/DB/Nodes.lua b/DB/Nodes.lua index 89592086..085bb286 100644 --- a/DB/Nodes.lua +++ b/DB/Nodes.lua @@ -276,4 +276,5 @@ R.opennodes = { [L["Spun Webs"]] = true, [L["Obsidian Grand Cache"]] = true, [L["Frozen Coffer"]] = true, + [L["Dreamseed Cache"]] = true, } diff --git a/Locales.lua b/Locales.lua index 8446a925..9777d7d8 100644 --- a/Locales.lua +++ b/Locales.lua @@ -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.