forked from endernon/PGRData
40 lines
No EOL
1.1 KiB
Lua
40 lines
No EOL
1.1 KiB
Lua
----------------------------------------------------------------
|
|
--主界面任务奖励检测
|
|
local XRedPointConditionMainTask = {}
|
|
local SubConditions = nil
|
|
function XRedPointConditionMainTask.GetSubConditions()
|
|
SubConditions = SubConditions or
|
|
{
|
|
XRedPointConditions.Types.CONDITION_TASK_COURSE,
|
|
XRedPointConditions.Types.CONDITION_TASK_TYPE,
|
|
}
|
|
return SubConditions
|
|
end
|
|
|
|
function XRedPointConditionMainTask.Check()
|
|
|
|
if XRedPointConditionTaskCourse.Check() and (not XFunctionManager.CheckFunctionFitter(XFunctionManager.FunctionName.TaskStory)) then
|
|
return true
|
|
end
|
|
|
|
if XRedPointConditionTaskType.Check(XDataCenter.TaskManager.TaskType.Story) then
|
|
return true
|
|
end
|
|
|
|
if XRedPointConditionTaskType.Check(XDataCenter.TaskManager.TaskType.Daily) then
|
|
return true
|
|
end
|
|
|
|
if XRedPointConditionTaskType.Check(XDataCenter.TaskManager.TaskType.Weekly) then
|
|
return true
|
|
end
|
|
|
|
if XRedPointConditionTaskType.Check(XDataCenter.TaskManager.TaskType.Activity) then
|
|
return true
|
|
end
|
|
|
|
|
|
return false
|
|
end
|
|
|
|
return XRedPointConditionMainTask |