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

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