fix: learn object quest objectives

This commit is contained in:
Xurkon
2026-06-05 21:32:10 -05:00
parent ec82d66a9e
commit 5e3d1b4fd3
2 changed files with 104 additions and 2 deletions
@@ -55,6 +55,15 @@ describe("QuestieLearner data source mode", function()
assert.is_true(has(priv, "local name = strictLearnerOnly and nil or QuestieDB.QueryObjectSingle(objectId, \"name\")"))
assert.is_true(has(priv, "local spawns = strictLearnerOnly and {} or QuestieDB.QueryObjectSingle(objectId, \"spawns\")"))
end)
it("maps object objectives from learner object captures before refresh", function()
local learner = read("Modules/QuestieLearner.lua")
assert.is_true(has(learner, "_Learner.recentObjects = _Learner.recentObjects or {}"))
assert.is_true(has(learner, "function QuestieLearner:LearnQuestObjectiveObject(questId, objectId, objText, objectiveIndex)"))
assert.is_true(has(learner, "objType == \"object\""))
assert.is_true(has(learner, "self:LearnQuestObjectiveObject(questId, objectId, objText, j)"))
assert.is_true(has(learner, "_Learner.recentObjects[objectId]"))
end)
end)
describe("QuestieLearner missing base DB fallback", function()