PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionBiancaTheatreAllRedPoint.lua
2024-09-01 22:49:41 +02:00

27 lines
No EOL
827 B
Lua

--肉鸽红点
local XRedPointConditionBiancaTheatreAllRedPoint = {}
local SubCondition = nil
function XRedPointConditionBiancaTheatreAllRedPoint.GetSubConditions()
SubCondition =
SubCondition or
{
XRedPointConditions.Types.CONDITION_BIANCATHEATRE_TASK_REWARD_RED_POINT,
XRedPointConditions.Types.CONDITION_BIANCATHEATRE_ACHIEVEMENT_RED_POINT,
}
return SubCondition
end
function XRedPointConditionBiancaTheatreAllRedPoint.Check()
if XRedPointConditionBiancaTheatreTaskReward.Check() then
return true
end
if XRedPointConditionBiancaTheatreAchievement.Check() then
return true
end
if XDataCenter.BiancaTheatreManager.IsHaveReward() then
return true
end
return false
end
return XRedPointConditionBiancaTheatreAllRedPoint