每日挑战首次解锁显示fix
This commit is contained in:
parent
5620d697e2
commit
a8f727c014
@ -105,11 +105,6 @@ function ChapterManager:endFightFinish(result)
|
|||||||
-- 处理金猪,要在章节更新之后
|
-- 处理金猪,要在章节更新之后
|
||||||
DataManager.GoldPigData:addGoldPigCount()
|
DataManager.GoldPigData:addGoldPigCount()
|
||||||
|
|
||||||
if ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.DAILY_CHALLENGE, true) and not DataManager.DailyChallengeData:isOpen() then
|
|
||||||
-- 满足配置开启条件,请求挑战数据
|
|
||||||
ModuleManager.DailyChallengeManager:onResetState()
|
|
||||||
end
|
|
||||||
|
|
||||||
local newMaxChapter = DataManager.ChapterData:getNewChapterId()
|
local newMaxChapter = DataManager.ChapterData:getNewChapterId()
|
||||||
if maxChapter ~= newMaxChapter then
|
if maxChapter ~= newMaxChapter then
|
||||||
local data = {}
|
local data = {}
|
||||||
@ -121,6 +116,8 @@ function ChapterManager:endFightFinish(result)
|
|||||||
end
|
end
|
||||||
-- 新章节通关,尝试解锁新功能
|
-- 新章节通关,尝试解锁新功能
|
||||||
DataManager:tryOpenModules()
|
DataManager:tryOpenModules()
|
||||||
|
-- 更新每日挑战数据
|
||||||
|
ModuleManager.DailyChallengeManager:onResetState()
|
||||||
-- 章节通关 标记可弹出章节礼包
|
-- 章节通关 标记可弹出章节礼包
|
||||||
DataManager.ShopData:markPopUpGiftForActChapterStore(maxChapter)
|
DataManager.ShopData:markPopUpGiftForActChapterStore(maxChapter)
|
||||||
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_PASS_CHAPTER)
|
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_PASS_CHAPTER)
|
||||||
|
|||||||
@ -167,6 +167,7 @@ end
|
|||||||
|
|
||||||
function MainComp:refresh()
|
function MainComp:refresh()
|
||||||
self:refreshStageFormaion()
|
self:refreshStageFormaion()
|
||||||
|
self:refreshChallenge()
|
||||||
end
|
end
|
||||||
|
|
||||||
function MainComp:getCurModuleType()
|
function MainComp:getCurModuleType()
|
||||||
|
|||||||
@ -40,12 +40,6 @@ function DailyChallengeData:isOpen()
|
|||||||
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.DAILY_CHALLENGE, true) then
|
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.DAILY_CHALLENGE, true) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
if self.tasks == nil then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
if self.buffIds == nil then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user