forked from endernon/PGRData
15 lines
388 B
Lua
15 lines
388 B
Lua
|
local XRedPointConditionMaverickTask = {}
|
||
|
|
||
|
function XRedPointConditionMaverickTask.Check()
|
||
|
local taskList = XDataCenter.TaskManager.GetTaskList(TaskType.Maverick)
|
||
|
|
||
|
for _, task in ipairs(taskList) do
|
||
|
if task.State == XDataCenter.TaskManager.TaskState.Achieved then
|
||
|
return true
|
||
|
end
|
||
|
end
|
||
|
|
||
|
return false
|
||
|
end
|
||
|
|
||
|
return XRedPointConditionMaverickTask
|