PGRData/Script/matrix/xredpoint/xredpointconditions/xescape/XRedPointConditionEscapeTask.lua

21 lines
509 B
Lua
Raw Permalink Normal View History

2024-09-01 20:49:41 +00:00
local XRedPointConditionEscapeTask = {}
local Events = nil
function XRedPointConditionEscapeTask.GetSubEvents()
Events =
Events or
{
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC)
}
return Events
end
function XRedPointConditionEscapeTask.Check()
if not XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.Escape) then
return false
end
return XDataCenter.EscapeManager.CheckTaskCanReward()
end
return XRedPointConditionEscapeTask