Skip to content

Commit

Permalink
Merge pull request #599 from cyriun/more-toys
Browse files Browse the repository at this point in the history
Add Everlasting Horn of Lavaswimming (toy) to the database
  • Loading branch information
rdw-software authored Aug 12, 2023
2 parents dbaea21 + e5923ff commit f26ff21
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -428,17 +428,17 @@ function R:OnCombat()
end
end

-- Handle quest turnins: Only used to detect world quests used for outdoor world bosses. It's not ideal, but probably more reliable than the loot lockout quest (which may or may not already be completed when the UNIT_DIED event is fired)
local worldBossQuests = {
local worldEventQuests = {
[52196] = "Slightly Damp Pile of Fur", -- Dunegorger Kraulok
[70867] = "Everlasting Horn of Lavaswimming", -- Scalebane Keep (scenario completion)
}

function R:OnQuestTurnedIn(event, questID, experience, money)
self:Debug(
"OnQuestTurnedIn triggered with ID = " .. questID .. ", experience = " .. experience .. ", money = " .. money
)

local relevantItem = worldBossQuests[questID]
local relevantItem = worldEventQuests[questID]
if not relevantItem then
return
end
Expand Down
11 changes: 11 additions & 0 deletions DB/Toys/Dragonflight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,17 @@ local dragonflightToys = {
{ m = CONSTANTS.UIMAPIDS.THE_PRIMALIST_FUTURE },
},
},
["Everlasting Horn of Lavaswimming"] = {
cat = CONSTANTS.ITEM_CATEGORIES.DRAGONFLIGHT,
type = CONSTANTS.ITEM_TYPES.ITEM,
isToy = true,
method = CONSTANTS.DETECTION_METHODS.SPECIAL,
name = L["Everlasting Horn of Lavaswimming"],
itemId = 200116,
chance = 40, --guess
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 } },
},
}

Rarity.ItemDB.MergeItems(Rarity.ItemDB.toys, dragonflightToys)
2 changes: 2 additions & 0 deletions Locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,8 @@ L["Gooey Snailemental"] = true
L["Dropped from the final bosses of Froststone Vault Primal Storm."] = true
L["Combine 50 Leftover Elemental Slime to create the Gooey Snailemental."] = true
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

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

0 comments on commit f26ff21

Please sign in to comment.