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

19 lines
765 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
local XRedPointConditionArchiveMonsterAll = {}
local Events = nil
function XRedPointConditionArchiveMonsterAll.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVNET_ARCHIVE_MONSTER_UNLOCKMONSTER),
XRedPointEventElement.New(XEventId.EVNET_ARCHIVE_MONSTER_UNLOCKMONSTERINFO),
XRedPointEventElement.New(XEventId.EVNET_ARCHIVE_MONSTER_UNLOCKMONSTERSKILL),
XRedPointEventElement.New(XEventId.EVNET_ARCHIVE_MONSTER_UNLOCKMONSTERSETTING),
}
return Events
end
function XRedPointConditionArchiveMonsterAll.Check()
return XDataCenter.ArchiveManager.IsMonsterHaveRedPointByAll() and XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.Archive)
end
return XRedPointConditionArchiveMonsterAll