PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionKillZoneActivity.lua
2022-12-26 14:06:01 +05:30

34 lines
No EOL
883 B
Lua

local Events = nil
local SubCondition = nil
local XRedPointConditionKillZoneActivity = {}
function XRedPointConditionKillZoneActivity.GetSubConditions()
SubCondition = SubCondition or {
XRedPointConditions.Types.XRedPointConditionKillZoneStarReward,
XRedPointConditions.Types.XRedPointConditionKillZoneDailyStarReward,
}
return SubCondition
end
function XRedPointConditionKillZoneActivity.Check(chapterId)
if not XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.KillZone) then
return false
end
if not XDataCenter.KillZoneManager.IsOpen() then
return false
end
if XDataCenter.KillZoneManager.IsAnyStarRewardCanGet() then
return true
end
if XRedPointConditionKillZoneDailyStarReward.Check() then
return true
end
return false
end
return XRedPointConditionKillZoneActivity