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
+8 -2
View File
@@ -819,7 +819,9 @@ end
function QuestieDB.GetSuppressedNPCs(zoneId)
local suppressed = {}
local ld = Questie.dbLearner.global
if ld and ld.settings and ld.settings.enabled and ld.settings.prioritizeMyData and ld.npcs then
local mode = ld and ld.settings and ld.settings.dataSourceMode or "auto"
if mode == "auto" or mode == "learner" then
if ld and ld.settings and ld.settings.enabled and ld.npcs then
local threshold = ld.settings.minConfidencePins or 2
local npcId, entry = next(ld.npcs)
while npcId do
@@ -829,6 +831,7 @@ function QuestieDB.GetSuppressedNPCs(zoneId)
end
npcId, entry = next(ld.npcs, npcId)
end
end
end
return suppressed
end
@@ -840,7 +843,9 @@ end
function QuestieDB.GetSuppressedObjects(zoneId)
local suppressed = {}
local ld = Questie.dbLearner.global
if ld and ld.settings and ld.settings.enabled and ld.settings.prioritizeMyData and ld.objects then
local mode = ld and ld.settings and ld.settings.dataSourceMode or "auto"
if mode == "auto" or mode == "learner" then
if ld and ld.settings and ld.settings.enabled and ld.objects then
local threshold = ld.settings.minConfidencePins or 2
local objId, entry = next(ld.objects)
while objId do
@@ -850,6 +855,7 @@ function QuestieDB.GetSuppressedObjects(zoneId)
end
objId, entry = next(ld.objects, objId)
end
end
end
return suppressed
end