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

22 lines
599 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
local XRedPointConditionGuildMember = {}
local Events = nil
function XRedPointConditionGuildMember.GetSubEvents()
Events = Events or {
XRedPointEventElement.New(XEventId.EVENT_GUILD_MEMBER_CONTRIBUTE_CONDITION),
XRedPointEventElement.New(XEventId.EVENT_GUILD_LEADER_DISSMISS),
}
return Events
end
function XRedPointConditionGuildMember.Check()
if not XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.Guild) then
return false
end
return XDataCenter.GuildManager.CanCollectContributeReward()
end
return XRedPointConditionGuildMember