if isComplete then
isComplete = format("(%s)",self.loc.QUEST_DONE)
elseif isComplete == -1 then
isComplete = format("(%s)",self.loc.QUEST_FAILED)
else
isComplete = ""
end
should be changed to
if isComplete == 1 then
isComplete = format("(%s)",self.loc.QUEST_DONE)
elseif isComplete == -1 then
isComplete = format("(%s)",self.loc.QUEST_FAILED)
else
isComplete = ""
end
the `if isComplete then` catches all non-nil, non-false values, which includes -1. |