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

25 lines
No EOL
563 B
Lua

local XRedPointConditionTaskLimited = {}
local Events = nil
function XRedPointConditionTaskLimited.GetSubEvents()
Events = Events or {
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC),
}
return Events
end
function XRedPointConditionTaskLimited.Check(limitedId)
if not limitedId then
return false
end
for _, taskGroupId in pairs(limitedId) do
if XDataCenter.TaskManager.CheckLimitTaskList(taskGroupId) then
return true
end
end
return false
end
return XRedPointConditionTaskLimited