2023-07-14 19:35:33 +00: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 20:49:41 +00: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-14 19:35:33 +00:00
|
|
|
|
2024-09-01 20:49:41 +00:00
|
|
|
return false
|
2023-07-14 19:35:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return XRedPointConditionKillZoneNewChapter
|