PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionNierCanFight.lua

23 lines
687 B
Lua
Raw Normal View History

----------------------------------------------------------------
--roguelike爬塔每日行动力不为零的红点检测
local XRedPointConditionNierCanFight = {}
local Events = nil
function XRedPointConditionNierCanFight.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_ROGUELIKE_ACTIONPOINT_CHARACTER_CHANGED),
}
return Events
end
function XRedPointConditionNierCanFight.Check()
local isOpen = XActivityBrieIsOpen.Get(XActivityBriefConfigs.ActivityGroupId.Nier)
if isOpen then
return XDataCenter.NieRManager.CheckNieRCanFightTag()
else
return false
end
end
return XRedPointConditionNierCanFight