PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionPassportTaskDaily.lua
2022-12-26 14:06:01 +05:30

22 lines
No EOL
563 B
Lua

local XRedPointConditionPassportTaskDaily = {}
local Events = nil
function XRedPointConditionPassportTaskDaily.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC),
XRedPointEventElement.New(XEventId.EVENT_FINISH_TASK),
}
return Events
end
function XRedPointConditionPassportTaskDaily.Check()
if XDataCenter.PassportManager.CheckPassportAchievedTaskRedPoint(XPassportConfigs.TaskType.Daily) then
return true
end
return false
end
return XRedPointConditionPassportTaskDaily