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

17 lines
No EOL
626 B
Lua

local XRedPointConditionConsumeActivityBuyGoods = {}
local Events = nil
function XRedPointConditionConsumeActivityBuyGoods.GetSubEvents()
---@type ConsumeDrawActivityEntity
local consumeDrawActivity = XDataCenter.AccumulatedConsumeManager.GetConsumeDrawActivity()
Events = Events or {
XRedPointEventElement.New(XEventId.EVENT_ITEM_COUNT_UPDATE_PREFIX .. consumeDrawActivity:GetShopCoinItemId()),
}
return Events
end
function XRedPointConditionConsumeActivityBuyGoods.Check()
return XDataCenter.AccumulatedConsumeManager.CheckCanBuyGoods()
end
return XRedPointConditionConsumeActivityBuyGoods