PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionFubenHackStar.lua

20 lines
577 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
----------------------------------------------------------------
--
local XRedPointConditionFubenHackStar = {}
local Events = nil
function XRedPointConditionFubenHackStar.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_FUBEN_HACK_UPDATE),
}
return Events
end
function XRedPointConditionFubenHackStar.Check()
if XDataCenter.FubenHackManager.GetIsActivityEnd() then return false end
local _, canGet = XDataCenter.FubenHackManager.GetStarRewardList()
return canGet
end
return XRedPointConditionFubenHackStar