2023-07-15 02:35:33 +07:00
|
|
|
--SP枢纽作战-新区域开放
|
|
|
|
local XRedPointConditionPivotCombatNewAreaOpenRedPoint = {}
|
|
|
|
|
|
|
|
function XRedPointConditionPivotCombatNewAreaOpenRedPoint.Check(regionId)
|
2024-09-01 22:49:41 +02:00
|
|
|
if XTool.IsNumberValid(regionId) then
|
|
|
|
return XDataCenter.PivotCombatManager.CheckNewAreaOpenRedPoint(regionId)
|
|
|
|
end
|
|
|
|
local regionIds = XDataCenter.PivotCombatManager.GetSecondaryRegionIds()
|
|
|
|
for _, regionId in ipairs(regionIds) do
|
|
|
|
if XDataCenter.PivotCombatManager.CheckNewAreaOpenRedPoint(regionId) then
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return false
|
2023-07-15 02:35:33 +07:00
|
|
|
end
|
|
|
|
return XRedPointConditionPivotCombatNewAreaOpenRedPoint
|