PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionPassportTaskActivity.lua

22 lines
No EOL
578 B
Lua

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