DungeonPreQuest: mark dungeon quests too, refresh QuestieDB data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9d30c8fed8
commit
01a351a865
10 changed files with 628 additions and 70 deletions
|
|
@ -1,5 +1,5 @@
|
|||
-- Purple "!" minimap markers on quest givers offering a dungeon pre-quest you
|
||||
-- can pick up right now. The game's own "!" icons can't be recoloured per quest,
|
||||
-- Purple "!" minimap markers on quest givers offering a dungeon quest or pre-quest
|
||||
-- you can pick up right now. The game's own "!" icons can't be recoloured per quest,
|
||||
-- so these are separate pins placed on top.
|
||||
|
||||
local _, ns = ...
|
||||
|
|
@ -68,11 +68,11 @@ local function CanPickUp(id, quest, level, raceBit, classBit)
|
|||
end
|
||||
|
||||
local function ShowTooltip(pin)
|
||||
local names = ns.DungeonsFor(pin.questID)
|
||||
local text = ns.Describe(pin.questID)
|
||||
GameTooltip:SetOwner(pin, "ANCHOR_RIGHT")
|
||||
GameTooltip:SetText(ns.pinQuests[pin.questID].n)
|
||||
if names then
|
||||
GameTooltip:AddLine(ns.Describe(names), 1, 0.82, 0, true)
|
||||
if text then
|
||||
GameTooltip:AddLine(text, 1, 0.82, 0, true)
|
||||
end
|
||||
GameTooltip:Show()
|
||||
end
|
||||
|
|
@ -112,7 +112,7 @@ local function Refresh()
|
|||
local classBit = 2 ^ (select(3, UnitClass("player")) - 1)
|
||||
|
||||
for id, quest in pairs(ns.pinQuests) do
|
||||
if ns.DungeonsFor(id) and CanPickUp(id, quest, level, raceBit, classBit) then
|
||||
if ns.Describe(id) and CanPickUp(id, quest, level, raceBit, classBit) then
|
||||
local spawns = quest.s
|
||||
for i = 1, #spawns, 3 do
|
||||
local pin = AcquirePin()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue