Add debug print to IsComplete for tricky quest
This commit is contained in:
@@ -1100,11 +1100,18 @@ function QuestieDB.IsComplete(questId)
|
|||||||
local allDone = true
|
local allDone = true
|
||||||
for _, obj in ipairs(objectives) do
|
for _, obj in ipairs(objectives) do
|
||||||
if obj.numRequired and obj.numRequired > 0 and obj.numFulfilled ~= obj.numRequired then
|
if obj.numRequired and obj.numRequired > 0 and obj.numFulfilled ~= obj.numRequired then
|
||||||
|
if questLogEntry.questId == 12843 or questLogEntry.questId == 12844 then
|
||||||
|
print("QuestieDB " .. tostring(questLogEntry.title) .. " incomplete because obj " .. tostring(obj.text) .. " has " .. tostring(obj.numFulfilled) .. "/" .. tostring(obj.numRequired))
|
||||||
|
end
|
||||||
allDone = false
|
allDone = false
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (questLogEntry.questId == 12843 or questLogEntry.questId == 12844) and allDone then
|
||||||
|
print("QuestieDB " .. tostring(questLogEntry.title) .. " thinks it is all done.")
|
||||||
|
end
|
||||||
|
|
||||||
return allDone and 1 or 0
|
return allDone and 1 or 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user