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

21 lines
548 B
Lua
Raw Normal View History

2024-09-01 20:49:41 +00:00
local XRedPointConditionRiftAttribute = {}
local Events = nil
function XRedPointConditionRiftAttribute.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_ITEM_COUNT_UPDATE_PREFIX),
}
return Events
end
function XRedPointConditionRiftAttribute.Check()
local isUnlock = XDataCenter.RiftManager.IsFuncUnlock(XRiftConfig.FuncUnlockId.Attribute)
if not isUnlock then
return false
end
return XDataCenter.RiftManager.IsBuyAttrRed()
end
return XRedPointConditionRiftAttribute