forked from endernon/PGRData
20 lines
783 B
Lua
20 lines
783 B
Lua
|
local XRedPointConditionArchiveMonsterRed = {}
|
||
|
local Events = nil
|
||
|
|
||
|
function XRedPointConditionArchiveMonsterRed.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 XRedPointConditionArchiveMonsterRed.Check(monsterId)
|
||
|
return XDataCenter.ArchiveManager.IsMonsterHaveRedPointById(monsterId) and
|
||
|
not XDataCenter.ArchiveManager.IsMonsterHaveNewTagById(monsterId)
|
||
|
end
|
||
|
|
||
|
return XRedPointConditionArchiveMonsterRed
|