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

23 lines
No EOL
639 B
Lua

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
if not XDataCenter.KillZoneManager.IsOpen() then return false end
return XDataCenter.KillZoneManager.CheckNewChapterRedPoint(chapterId)
end
return XRedPointConditionKillZoneNewChapter