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

33 lines
802 B
Lua
Raw Normal View History

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
2024-09-01 20:49:41 +00:00
return false
end
return XRedPointConditionKillZoneNewChapter