PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionMedalNew.lua
2022-12-26 14:06:01 +05:30

21 lines
No EOL
708 B
Lua

----------------------------------------------------------------
-- 勋章检测
local XRedPointConditionMedalNew = {}
local Events = nil
function XRedPointConditionMedalNew.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_MEDAL_NOTIFY),
XRedPointEventElement.New(XEventId.EVENT_MEDAL_REDPOINT_CHANGE),
XRedPointEventElement.New(XEventId.EVENT_SCORETITLE_CHANGE),
XRedPointEventElement.New(XEventId.EVENT_NAMEPLATE_CHANGE),
}
return Events
end
function XRedPointConditionMedalNew.Check()
return XDataCenter.MedalManager.CheckHaveNewMedal()
end
return XRedPointConditionMedalNew