forked from endernon/PGRData
15 lines
641 B
Lua
15 lines
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
|