PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionTurntableTask.lua
2024-09-01 22:49:41 +02:00

20 lines
No EOL
624 B
Lua

local XRedPointConditionTurntableTask = {}
local Events = nil
function XRedPointConditionTurntableTask.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_TASK_FINISH_FAIL),
XRedPointEventElement.New(XEventId.EVENT_FINISH_TASK),
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC),
}
return Events
end
function XRedPointConditionTurntableTask.Check()
---@type XTurntableAgency
local agency = XMVCA:GetAgency(ModuleId.XTurntable)
return agency:IsTaskRewardGain()
end
return XRedPointConditionTurntableTask