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

25 lines
No EOL
788 B
Lua

local XRedPointConditionPassportPanelReward = {}
local Events = nil
function XRedPointConditionPassportPanelReward.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_NOTIFY_PASSPORT_BASE_INFO),
XRedPointEventElement.New(XEventId.EVENT_BUY_PASSPORT_COMPLEATE),
XRedPointEventElement.New(XEventId.EVENT_BUY_EXP_COMPLEATE),
XRedPointEventElement.New(XEventId.EVENT_BUY_RECV_REWARD_COMPLEATE),
XRedPointEventElement.New(XEventId.EVENT_BUY_RECV_ALL_REWARD_COMPLEATE),
}
return Events
end
function XRedPointConditionPassportPanelReward.Check()
if XDataCenter.PassportManager.CheckPassportRewardRedPoint() then
return true
end
return false
end
return XRedPointConditionPassportPanelReward