forked from endernon/PGRData
17 lines
No EOL
539 B
Lua
17 lines
No EOL
539 B
Lua
local XRedPointConditionCharacterTowerEntrance = {}
|
|
|
|
function XRedPointConditionCharacterTowerEntrance.Check(id)
|
|
if not XTool.IsNumberValid(id) then
|
|
return false
|
|
end
|
|
local chapterIds = XFubenCharacterTowerConfigs.GetChapterIdsById(id)
|
|
for _, chapterId in pairs(chapterIds) do
|
|
local hasRedPoint = XDataCenter.CharacterTowerManager.CheckRedPointByChapterId(chapterId)
|
|
if hasRedPoint then
|
|
return true
|
|
end
|
|
end
|
|
return false
|
|
end
|
|
|
|
return XRedPointConditionCharacterTowerEntrance |