Skip to content

Commit

Permalink
DB: Added a first batch of TWW collectibles
Browse files Browse the repository at this point in the history
This is a very incomplete list, since wowhead has no real data.
  • Loading branch information
rdw-software committed Aug 22, 2024
1 parent 33ec43d commit 9e6189e
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 0 deletions.
69 changes: 69 additions & 0 deletions DB/Mounts/TheWarWithin.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
local addonName, addonTable = ...

local L = LibStub("AceLocale-3.0"):GetLocale("Rarity")
local CONSTANTS = addonTable.constants

local twwMounts = {
-- 11.0 mounts
["Reins of the Sureki Skyrazor"] = {
cat = CONSTANTS.ITEM_CATEGORIES.TWW,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.NPC,
name = L["Reins of the Sureki Skyrazor"],
itemId = 224147,
spellId = 451486,
npcs = { 219778 },
groupSize = 5,
equalOdds = true,
chance = 100, -- No data available
coords = { { i = true, m = CONSTANTS.UIMAPIDS.NERUBAR_PALACE } },
},
["Beledar's Spawn"] = {
cat = CONSTANTS.ITEM_CATEGORIES.TWW,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.NPC,
name = L["Beledar's Spawn"],
itemId = 223315,
spellId = 448941,
npcs = { 207802 },
chance = 100, -- No data available
coords = { { m = CONSTANTS.UIMAPIDS.HALLOWFALL } },
},
["Regurgitated Mole Reins"] = {
cat = CONSTANTS.ITEM_CATEGORIES.TWW,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.NPC,
name = L["Regurgitated Mole Reins"],
itemId = 223501,
spellId = 449258,
npcs = { 220285 },
chance = 100, -- No data available
coords = { { m = CONSTANTS.UIMAPIDS.THE_RINGING_DEEPS } },
},
["Wick's Lead"] = {
cat = CONSTANTS.ITEM_CATEGORIES.TWW,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.NPC,
name = L["Wick's Lead"],
itemId = 225548,
spellId = 449264,
npcs = { 210797 },
groupSize = 5,
equalOdds = true,
chance = 100, -- No data available
coords = { { m = CONSTANTS.UIMAPIDS.DARKFLAME_CLEFT } },
},
["Alunira"] = {
cat = CONSTANTS.ITEM_CATEGORIES.TWW,
type = CONSTANTS.ITEM_TYPES.MOUNT,
method = CONSTANTS.DETECTION_METHODS.COLLECTION,
name = L["Alunira"],
itemId = 223270,
collectedItemId = { 224025 },
spellId = 447213,
chance = 10,
coords = { { m = CONSTANTS.UIMAPIDS.ISLE_OF_DORN } },
},
}

Rarity.ItemDB.MergeItems(Rarity.ItemDB.mounts, twwMounts)
24 changes: 24 additions & 0 deletions DB/Pets/TheWarWithin.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
local addonName, addonTable = ...

local L = LibStub("AceLocale-3.0"):GetLocale("Rarity")
local CONSTANTS = addonTable.constants

local twwPets = {
-- 11.0 pets
["Bop"] = {
cat = CONSTANTS.ITEM_CATEGORIES.TWW,
type = CONSTANTS.ITEM_TYPES.PET,
method = CONSTANTS.DETECTION_METHODS.NPC,
name = L["Bop"],
npcs = { 218523 },
itemId = 223155,
spellId = 446024,
chance = 5, -- No data available
creatureId = 222318,
groupSize = 5,
equalOdds = true,
coords = { { m = CONSTANTS.UIMAPIDS.CINDERBREW_MEADERY, i = true } },
},
}

Rarity.ItemDB.MergeItems(Rarity.ItemDB.pets, twwPets)
8 changes: 8 additions & 0 deletions DB/SharedConstants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ C.UIMAPIDS = {
THE_THROUGHWAY = 2165,
CROSSROADS_OF_FATE = 2194, -- Dawn of the Infinite (subzone)
THE_EMERALD_DREAM = 2200,

-- The War Within zones
THE_RINGING_DEEPS = 2214,
HALLOWFALL = 2215,
ISLE_OF_DORN = 2248,
NERUBAR_PALACE = 2291,
DARKFLAME_CLEFT = 2303,
CINDERBREW_MEADERY = 2335,
}

-- Types of items
Expand Down
22 changes: 22 additions & 0 deletions DB/Toys/TheWarWithin.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
local addonName, addonTable = ...

local L = LibStub("AceLocale-3.0"):GetLocale("Rarity")
local CONSTANTS = addonTable.constants

local twwToysAndItems = {
["Crackling Shard"] = {
cat = CONSTANTS.ITEM_CATEGORIES.TWW,
type = CONSTANTS.ITEM_TYPES.ITEM,
method = CONSTANTS.DETECTION_METHODS.ZONE,
name = L["Crackling Shard"],
itemId = 224025,
spellId = 450842, -- Irrelevant
zones = { tostring(CONSTANTS.UIMAPIDS.ISLE_OF_DORN) },
chance = 2000,
sourceText = L["Dropped by any mob in Isle of Dorn (except minor mobs). 10 of these can be combined to pierce Alunira's shield, allowing combat and a guaranteed drop of Alunira."],
coords = { { m = CONSTANTS.UIMAPIDS.ISLE_OF_DORN } },
repeatable = true,
},
}

Rarity.ItemDB.MergeItems(Rarity.ItemDB.toys, twwToysAndItems)
7 changes: 7 additions & 0 deletions Locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ local L
L = LibStub("AceLocale-3.0"):NewLocale("Rarity", "enUS", true)

-- L["AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"] = true
L["Bop"] = true
L["Crackling Shard"] = true
L["Alunira"] = true
L["Wick's Lead"] = true
L["Regurgitated Mole Reins"] = true
L["Beledar's Spawn"] = true
L["Reins of the Sureki Skyrazor"] = true
L["The War Within"] = true
L["Noble Flying Carpet"] = true
L["Clayscale Hornstrider"] = true
Expand Down
3 changes: 3 additions & 0 deletions Rarity.toc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ DB\Mounts\Legion.lua
DB\Mounts\BattleForAzeroth.lua
DB\Mounts\Shadowlands.lua
DB\Mounts\Dragonflight.lua
DB\Mounts\TheWarWithin.lua

## Pets
DB\Pets\HolidayEvents.lua
Expand All @@ -94,6 +95,7 @@ DB\Pets\Legion.lua
DB\Pets\BattleForAzeroth.lua
DB\Pets\Shadowlands.lua
DB\Pets\Dragonflight.lua
DB\Pets\TheWarWithin.lua

## Toys (and other items, for now...)
DB\Toys\HolidayEvents.lua
Expand All @@ -107,6 +109,7 @@ DB\Toys\Legion.lua
DB\Toys\BattleForAzeroth.lua
DB\Toys\Shadowlands.lua
DB\Toys\Dragonflight.lua
DB\Toys\TheWarWithin.lua

# Utility/Helpers
Utils\DebugCache.lua
Expand Down

0 comments on commit 9e6189e

Please sign in to comment.