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

15 lines
No EOL
641 B
Lua

local XRedPointConditionPracticeBossChallengeNew = {}
function XRedPointConditionPracticeBossChallengeNew.Check()
local chapterIdList = XPracticeConfigs.GetPracticeChapterIdListByType(XPracticeConfigs.PracticeType.Boss)
for _, chapterId in ipairs(chapterIdList) do
if not XDataCenter.PracticeManager.CheckBossNewChallengerRedPoint(chapterId) and
XTool.IsNumberValid(XPracticeConfigs.GetPracticeSubTagById(chapterId)) and
XDataCenter.PracticeManager.CheckUnLockBtnState(chapterId) then
return true
end
end
return false
end
return XRedPointConditionPracticeBossChallengeNew