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

25 lines
No EOL
672 B
Lua

----------------------------------------------------------------
local XRedPointConditionPurchase = {}
local SubCondition = nil
function XRedPointConditionPurchase.GetSubConditions()
SubCondition = SubCondition or
{
XRedPointConditions.Types.CONDITION_PURCHASE_LB_RED,
XRedPointConditions.Types.CONDITION_ACCUMULATE_PAY_RED,
}
return SubCondition
end
function XRedPointConditionPurchase.Check()
local f = XRedPointConditionPurchaseLB.Check()
if f then
return true
end
f = XRedPointConditionPurchaseAccumulate.Check()
if f then
return true
end
return false
end
return XRedPointConditionPurchase