feat: add learner/static data source mode

This commit is contained in:
Xurkon
2026-06-05 20:15:26 -05:00
parent 3f87e04c75
commit a0409eef8c
8 changed files with 328 additions and 31 deletions
+2 -1
View File
@@ -253,7 +253,8 @@ function QuestieTooltips:GetTooltip(key)
if (not QuestieTooltips.lookupByKey[key]) then
local QuestieLearner = QuestieLoader:ImportModule("QuestieLearner")
local QuestLogCache = QuestieLoader:ImportModule("QuestLogCache")
if QuestieLearner and QuestieLearner.data then
local mode = QuestieLearner and QuestieLearner.GetDataSourceMode and QuestieLearner:GetDataSourceMode() or "auto"
if QuestieLearner and QuestieLearner.data and mode ~= "static" and mode ~= "none" then
-- Try to find in learned NPCs or objects
local id = tonumber(key:sub(3))
if id then