forked from endernon/PGRData
25 lines
781 B
Lua
25 lines
781 B
Lua
|
|
||
|
local XRedPointConditionRpgMakerGame = {}
|
||
|
|
||
|
local Events = nil
|
||
|
|
||
|
function XRedPointConditionRpgMakerGame.GetSubEvents()
|
||
|
Events =
|
||
|
Events or
|
||
|
{
|
||
|
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC)
|
||
|
}
|
||
|
return Events
|
||
|
end
|
||
|
|
||
|
function XRedPointConditionRpgMakerGame.Check()
|
||
|
if not XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.RpgMakerActivity) then
|
||
|
return false
|
||
|
end
|
||
|
local taskRedot = XDataCenter.RpgMakerGameManager.CheckRedPoint()
|
||
|
local chapterGroupRedot = XDataCenter.RpgMakerGameManager.CheckAllChapterGroupRedPoint()
|
||
|
local chapterRedot = XDataCenter.RpgMakerGameManager.CheckFirstChapterGroupRedPoint()
|
||
|
return taskRedot or chapterGroupRedot or chapterRedot
|
||
|
end
|
||
|
|
||
|
return XRedPointConditionRpgMakerGame
|