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

19 lines
546 B
Lua
Raw Normal View History

-- Author: wujie
-- Note: 图鉴武器设定新得时的红点
local XRedPointConditionArchiveWeaponSettingUnlock = {}
local Events = nil
function XRedPointConditionArchiveWeaponSettingUnlock.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENET_ARCHIVE_UNLOCK_WEAPON_SETTING),
}
return Events
end
function XRedPointConditionArchiveWeaponSettingUnlock.Check(templateId)
return XDataCenter.ArchiveManager.IsNewWeaponSetting(templateId)
end
return XRedPointConditionArchiveWeaponSettingUnlock