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

20 lines
No EOL
1,019 B
Lua

----------------------------------------------------------------
--角色入口红点检测
local XRedPointConditionMainChapter = {}
local SubConditions = nil
function XRedPointConditionMainChapter.Check()
return XDataCenter.FubenMainLineManager.CheckAllChapterReward()
or XDataCenter.BfrtManager.CheckAllChapterReward()
or XDataCenter.ExtraChapterManager.CheckAllChapterReward()
or XDataCenter.ShortStoryChapterManager.CheckAllChapterReward()
or XDataCenter.TaskManager.GetIsRewardFor(XDataCenter.TaskManager.TaskType.ZhouMu)
or XRedPointConditionTRPGMainView.Check(XDataCenter.FubenMainLineManager.TRPGChapterId)
end
function XRedPointConditionMainChapter.GetSubConditions()
SubConditions = SubConditions or { XRedPointConditions.Types.CONDITION_MAINLINE_CHAPTER_REWARD, XRedPointConditions.Types.CONDITION_BFRT_CHAPTER_REWARD, XRedPointConditions.Types.CONDITION_TRPG_MAIN_VIEW}
return SubConditions
end
return XRedPointConditionMainChapter