PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionRpgTowerTaskRed.lua

15 lines
437 B
Lua
Raw Normal View History

-- 有可领取奖励的任务时红点
local XRedPointConditionRpgTowerTaskRed = {}
local Events = nil
function XRedPointConditionRpgTowerTaskRed.GetSubEvents()
Events = Events or {
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC)
}
return Events
end
function XRedPointConditionRpgTowerTaskRed.Check()
return XDataCenter.TaskManager.GetRpgTowerHaveAchievedTask()
end
return XRedPointConditionRpgTowerTaskRed