2023-07-14 19:35:33 +00:00
|
|
|
----------------------------------------------------------------
|
|
|
|
local XRedPointConditionSpecialTrain = {}
|
|
|
|
local Events = nil
|
|
|
|
local SubCondition = nil
|
|
|
|
function XRedPointConditionSpecialTrain.GetSubEvents()
|
|
|
|
Events = Events or {
|
|
|
|
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC),
|
2024-09-01 20:49:41 +00:00
|
|
|
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC),
|
2023-07-14 19:35:33 +00:00
|
|
|
}
|
|
|
|
return Events
|
|
|
|
end
|
|
|
|
|
|
|
|
function XRedPointConditionSpecialTrain.GetSubConditions()
|
|
|
|
SubCondition = SubCondition or {
|
|
|
|
XRedPointConditions.Types.CONDITION_SPECIALTRAINPOINT_RED,
|
2024-09-01 20:49:41 +00:00
|
|
|
XRedPointConditions.Types.CONDITION_SPECIALTRAINMAP_RED,
|
2023-07-14 19:35:33 +00:00
|
|
|
}
|
|
|
|
return SubCondition
|
|
|
|
end
|
|
|
|
|
|
|
|
function XRedPointConditionSpecialTrain.Check()
|
2024-09-01 20:49:41 +00:00
|
|
|
if not XDataCenter.FubenSpecialTrainManager.CheckAllowDisplayRedPoint() then
|
|
|
|
return false
|
2023-07-14 19:35:33 +00:00
|
|
|
end
|
2024-09-01 20:49:41 +00:00
|
|
|
|
|
|
|
return XRedPointConditionSpecialTrainPointAndTask.Check() or
|
|
|
|
XRedPointConditionSpecialTrainNewMap.Check() or
|
|
|
|
XDataCenter.FubenSpecialTrainManager.IsHardModeOpenAndNew() or
|
|
|
|
XDataCenter.FubenSpecialTrainManager.CheckChapterHasReward() or
|
|
|
|
false
|
2023-07-14 19:35:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return XRedPointConditionSpecialTrain
|