forked from endernon/PGRData
31 lines
809 B
Lua
31 lines
809 B
Lua
|
----------------------------------------------------------------
|
||
|
local XRedPointConditionTrial = {}
|
||
|
local SubCondition = nil
|
||
|
function XRedPointConditionTrial.GetSubConditions()
|
||
|
SubCondition =
|
||
|
SubCondition or
|
||
|
{
|
||
|
XRedPointConditions.Types.CONDITION_TRIAL_REWARD_RED
|
||
|
}
|
||
|
return SubCondition
|
||
|
end
|
||
|
|
||
|
function XRedPointConditionTrial.Check()
|
||
|
-- 没有开启
|
||
|
if XFunctionManager.CheckFunctionFitter(XFunctionManager.FunctionName.FubenChallengeTrial) then
|
||
|
return false
|
||
|
end
|
||
|
|
||
|
local isOpen = XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.FubenChallengeTrial)
|
||
|
if not isOpen then
|
||
|
return false
|
||
|
end
|
||
|
|
||
|
if XRedPointConditionTrialReward.Check() then
|
||
|
return true
|
||
|
end
|
||
|
|
||
|
return false
|
||
|
end
|
||
|
|
||
|
return XRedPointConditionTrial
|