PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionSpecialTrainPointAndTask.lua
2024-09-01 22:49:41 +02:00

16 lines
No EOL
618 B
Lua

local XRedPointConditionSpecialTrainPointAndTask = {}
local Events = nil
function XRedPointConditionSpecialTrainPointAndTask.GetSubEvents()
Events = Events or {
XRedPointEventElement.New(XEventId.EVENT_ITEM_COUNT_UPDATE_PREFIX .. XDataCenter.FubenSpecialTrainManager.GetSpecialTrainPointItemId()),
}
return Events
end
function XRedPointConditionSpecialTrainPointAndTask.Check()
return XDataCenter.FubenSpecialTrainManager.CheckHasActivityPointAndSatisfiedToGetReward() or XDataCenter.FubenSpecialTrainManager.CheckTaskAchieved()
end
return XRedPointConditionSpecialTrainPointAndTask