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

19 lines
546 B
Lua
Raw Normal View History

2022-12-26 14:06:01 +05:30
-- 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