/trunk
function EasyDaily:CanAdvanceGossip(title, isActive) |
local t = self:GetQuestTableByTitle(title) |
local s = self:CanAutoTurnQuest(title) and self:QuestTypeIsActive(t.type[1]) |
local s = self:CanAutoTurnQuest(title) |
if s and t and t.type[2] == 2 then |
return self:QuestHasReqItems(title) |
elseif s and isActive then |
return self:GetQuestLogCompletionByTitle(title) |
else |
return s |
return s and ( ( not t ) or self:QuestTypeIsActive(t.type[1]) ) |
end |
end |
function EasyDaily:ToggleQuestState(title) |
local t, isStandard = EasyDaily:GetQuestTableByTitle(title) |
if isStandard then |
if t then |
t.disabled = not t.disabled |
else |
table.insert( self.db.profile.data.custom, { title = title } ) |
desc = L["Enable/Disable this quest."], |
get = function() return true end, |
set = function() |
table.remove(EasyDaily.db.profile.data, i) |
table.remove(EasyDaily.db.profile.data.custom, i) |
end, |
} |
c = c + 1 |