30 lines
No EOL
972 B
Lua
30 lines
No EOL
972 B
Lua
local XRedPointConditionShortStoryChapterReward = {}
|
|
local SubCondition = nil
|
|
|
|
function XRedPointConditionShortStoryChapterReward.GetSubConditions()
|
|
SubCondition = SubCondition or
|
|
{
|
|
XRedPointConditions.Types.CONDITION_SHORT_STORY_TREASURE, -- 故事集章节收集奖励
|
|
XRedPointConditions.Types.CONDITION_ZHOUMU_TASK, -- 周目挑战任务
|
|
}
|
|
return SubCondition
|
|
end
|
|
|
|
function XRedPointConditionShortStoryChapterReward.Check(chapterId)
|
|
if XRedPointConditionShortStoryTreasure.Check(chapterId) then
|
|
return true
|
|
end
|
|
|
|
local chapterMainId = XFubenShortStoryChapterConfigs.GetChapterMainIdByChapterId(chapterId)
|
|
local zhouMuId = XFubenShortStoryChapterConfigs.GetZhouMuId(chapterMainId)
|
|
if zhouMuId == 0 then
|
|
return false
|
|
end
|
|
|
|
if XRedPointConditionZhouMuTask.Check(zhouMuId) then
|
|
return true
|
|
end
|
|
|
|
return false
|
|
end
|
|
return XRedPointConditionShortStoryChapterReward |