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

20 lines
783 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
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