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

23 lines
No EOL
687 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

----------------------------------------------------------------
--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