PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionLivWarmActivityCanChallenge.lua

23 lines
689 B
Lua
Raw Normal View History

local XRedPointConditionLivWarmActivityCanChallenge = {}
local Events = nil
function XRedPointConditionLivWarmActivityCanChallenge.GetSubEvents()
local itemId = XLivWarmActivityConfigs.GetLivWarmActivityItemId()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_NOTIFY_LIV_WARM_ACTIVITY_ON_CHANGE),
XRedPointEventElement.New(XEventId.EVENT_ITEM_COUNT_UPDATE_PREFIX .. itemId),
}
return Events
end
function XRedPointConditionLivWarmActivityCanChallenge.Check()
if XDataCenter.LivWarmActivityManager.CheckCanChallengeRedPoint() then
return true
end
return false
end
return XRedPointConditionLivWarmActivityCanChallenge