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

35 lines
No EOL
1 KiB
Lua

---消消乐小游戏相关红点
local XRedPointConditionLivWarmActivity = {}
local SubCondition = nil
function XRedPointConditionLivWarmActivity.GetSubConditions()
SubCondition = SubCondition or
{
XRedPointConditions.Types.CONDITION_LIV_WARM_ACTIVITY_REWARD,
XRedPointConditions.Types.CONDITION_LIV_WARM_ACTIVITY_CAN_CHALLENGE,
XRedPointConditions.Types.CONDITION_LIV_WARM_SOUNDS_ACTIVITY_CAN_CHALLENGE,
XRedPointConditions.Types.CONDITION_LIV_WARM_SOUNDS_ACTIVITY_REWARD,
}
return SubCondition
end
function XRedPointConditionLivWarmActivity.Check()
if XRedPointConditionLivWarmActivityReward.Check() then
return true
end
if XRedPointConditionLivWarmActivityCanChallenge.Check() then
return true
end
if XRedPointConditionLivWarmSoundsNewStage.Check() then
return true
end
if XRedPointConditionLivWarmSoundsTaskAward.Check() then
return true
end
return false
end
return XRedPointConditionLivWarmActivity