feat: add learner/static data source mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user