forked from endernon/PGRData
38 lines
No EOL
1.1 KiB
Lua
38 lines
No EOL
1.1 KiB
Lua
--===========================================================================
|
|
---@desc 接头霸王游戏总红点检查
|
|
--===========================================================================
|
|
|
|
local XRedPointBodyCombineGameMain = {}
|
|
local SubCondition = nil
|
|
|
|
function XRedPointBodyCombineGameMain.GetSubConditions()
|
|
SubCondition = SubCondition or {
|
|
XRedPointConditions.Types.CONDITION_BODYCOMBINEGAME_REWARD,
|
|
XRedPointConditions.Types.CONDITION_BODYCOMBINEGAME_UNFINISHALL,
|
|
XRedPointConditions.Types.CONDITION_BODYCOMBINEGAME_UNLOCKED_STAGE,
|
|
}
|
|
|
|
return SubCondition
|
|
end
|
|
|
|
|
|
function XRedPointBodyCombineGameMain.Check()
|
|
if XRedPointBodyCombineGameReward.Check() then
|
|
return true
|
|
end
|
|
|
|
if XRedPointBodyCombineGameUnFinishAll.Check() then
|
|
return true
|
|
end
|
|
|
|
local stageIds = XDataCenter.BodyCombineGameManager.GetCurActivityStageIds()
|
|
for _, stageId in ipairs(stageIds) do
|
|
if XRedPointBodyCombineGameUnlockedStage.Check(stageId) then
|
|
return true
|
|
end
|
|
end
|
|
|
|
return false
|
|
end
|
|
|
|
return XRedPointBodyCombineGameMain |