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

36 lines
No EOL
1.1 KiB
Lua

----------------------------------------------------------------
--预热关拼图小游戏入口
local XRedPointConditionFuBenDragPuzzleGameRed = {}
local SubCondition = nil
function XRedPointConditionFuBenDragPuzzleGameRed.GetSubConditions()
SubCondition = SubCondition or
{
XRedPointConditions.Types.CONDITION_DRAG_PUZZLE_GAME_SWITCH,
XRedPointConditions.Types.CONDITION_DRAG_PUZZLE_GAME_AWARD,
XRedPointConditions.Types.CONDITION_DRAG_PUZZLE_GAME_VIDEO,
XRedPointConditions.Types.CONDITION_DRAG_PUZZLE_GAME_DECRYPTION,
}
return SubCondition
end
function XRedPointConditionFuBenDragPuzzleGameRed.Check()
if XRedPointConditionDragPuzzleSwitch.Check() then
return true
end
if XRedPointConditionDragPuzzleAward.Check() then
return true
end
if XDataCenter.FubenActivityPuzzleManager.CheckAllVideoRedPoint() then
return true
end
if XDataCenter.FubenActivityPuzzleManager.CheckAllPuzzleDecryptionRedPoint() then
return true
end
return false
end
return XRedPointConditionFuBenDragPuzzleGameRed