forked from endernon/PGRData
23 lines
No EOL
735 B
Lua
23 lines
No EOL
735 B
Lua
--
|
|
-- Author: wujie
|
|
-- Note: 图鉴武器红点
|
|
|
|
local XRedPointConditionArchiveWeapon = {}
|
|
local Events = nil
|
|
|
|
function XRedPointConditionArchiveWeapon.GetSubEvents()
|
|
Events = Events or
|
|
{
|
|
XRedPointEventElement.New(XEventId.EVENET_ARCHIVE_NEW_WEAPON),
|
|
XRedPointEventElement.New(XEventId.EVENET_ARCHIVE_UNLOCK_WEAPON),
|
|
XRedPointEventElement.New(XEventId.EVENET_ARCHIVE_UNLOCK_WEAPON_SETTING),
|
|
}
|
|
return Events
|
|
end
|
|
|
|
function XRedPointConditionArchiveWeapon.Check()
|
|
return (XDataCenter.ArchiveManager.IsHaveNewWeapon() or XDataCenter.ArchiveManager.IsHaveNewWeaponSetting())
|
|
and XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.Archive)
|
|
end
|
|
|
|
return XRedPointConditionArchiveWeapon |