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

24 lines
No EOL
754 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 XRedPointConditionRogueLikeMain = {}
local Events = nil
function XRedPointConditionRogueLikeMain.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_ROGUELIKE_ACTIONPOINT_CHARACTER_CHANGED),
}
return Events
end
function XRedPointConditionRogueLikeMain.Check()
local isOpen = XActivityBrieIsOpen.Get(XActivityBriefConfigs.ActivityGroupId.RougueLike)
if isOpen then
local actionPoint = XDataCenter.FubenRogueLikeManager.GetRogueLikeActionPoint()
return actionPoint > 0
else
return false
end
end
return XRedPointConditionRogueLikeMain