2023-07-15 02:35:33 +07:00
|
|
|
local Events = nil
|
|
|
|
|
|
|
|
local XRedPointConditionKillZoneNewChapter = {}
|
|
|
|
|
|
|
|
function XRedPointConditionKillZoneNewChapter.GetSubEvents()
|
|
|
|
Events = Events or
|
|
|
|
{
|
|
|
|
XRedPointEventElement.New(XEventId.EVENT_KILLZONE_NEW_CHAPTER_CHANGE),
|
|
|
|
}
|
|
|
|
return Events
|
|
|
|
end
|
|
|
|
|
|
|
|
function XRedPointConditionKillZoneNewChapter.Check(chapterId)
|
|
|
|
if not XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.KillZone) then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
2024-09-01 22:49:41 +02:00
|
|
|
if not XDataCenter.KillZoneManager.IsOpen() then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
if XDataCenter.KillZoneManager.CheckNewChapterRedPoint(chapterId) then
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
|
|
|
|
if XDataCenter.KillZoneManager.CheckDailyStageRedPoint(chapterId) then
|
|
|
|
return true
|
|
|
|
end
|
2023-07-15 02:35:33 +07:00
|
|
|
|
2024-09-01 22:49:41 +02:00
|
|
|
return false
|
2023-07-15 02:35:33 +07:00
|
|
|
end
|
|
|
|
|
|
|
|
return XRedPointConditionKillZoneNewChapter
|