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

27 lines
No EOL
770 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.

----------------------------------------------------------------
--RPG玩法有可挑战关卡
local XRedPointConditionRpgTower = {}
local Events = nil
function XRedPointConditionRpgTower.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_RPGTOWER_CHALLENGE_COUNT_CHANGE),
}
return Events
end
function XRedPointConditionRpgTower.Check()
local isOpen = XActivityBrieIsOpen.Get(XActivityBriefConfigs.ActivityGroupId.RpgTower)
if isOpen then
if XDataCenter.RpgTowerManager.GetChallengeCount() > 0 and XDataCenter.RpgTowerManager.GetHaveNewStage() then
return true
else
return false
end
else
return false
end
end
return XRedPointConditionRpgTower