PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionTurntableTimes.lua
2024-09-01 22:49:41 +02:00

24 lines
No EOL
813 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 当距离活动结束还剩72小时玩家有抽奖券且转盘还有奖励
local XRedPointConditionTurntableTimes = {}
local Events = nil
function XRedPointConditionTurntableTimes.GetSubEvents()
---@type XTurntableAgency
local agency = XMVCA:GetAgency(ModuleId.XTurntable)
local itemId = agency:GetCostItem()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_TURNTABLE_ITEM_UPDATE),
XRedPointEventElement.New(XEventId.EVENT_ITEM_COUNT_UPDATE_PREFIX .. itemId),
}
return Events
end
function XRedPointConditionTurntableTimes.Check()
---@type XTurntableAgency
local agency = XMVCA:GetAgency(ModuleId.XTurntable)
return agency:IsHasTimesInTheRemaining72Hours()
end
return XRedPointConditionTurntableTimes