Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev

This commit is contained in:
CloudJ 2023-06-05 11:45:42 +08:00
commit aa3bb714ac
4 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,7 @@ TutorialConst.START_TUTORIAL = 1
TutorialConst.PASS_ONE_CHAPTER = 2 TutorialConst.PASS_ONE_CHAPTER = 2
TutorialConst.TWO_CHAPTER_BOX_CAN_GOT = 3 TutorialConst.TWO_CHAPTER_BOX_CAN_GOT = 3
TutorialConst.PASS_THREE_CHAPTER = 4 TutorialConst.PASS_THREE_CHAPTER = 4
TutorialConst.UNLOCK_DAILY_CHALLENGE = 5
TutorialConst.TUTORIAL_TYPE = { TutorialConst.TUTORIAL_TYPE = {
CLICK = 1, -- 点击任意区域 CLICK = 1, -- 点击任意区域

View File

@ -105,6 +105,9 @@ end
function DailyChallengeComp:refreshBoss() function DailyChallengeComp:refreshBoss()
local curBossInfo = DataManager.DailyChallengeData:getFinalBossInfo() local curBossInfo = DataManager.DailyChallengeData:getFinalBossInfo()
if not curBossInfo then
return
end
if self.curModelId == curBossInfo.model_id then if self.curModelId == curBossInfo.model_id then
return return
end end

View File

@ -900,6 +900,12 @@ function MainCityUI:checkTutorial()
return true return true
end end
end end
if DataManager.DailyChallengeData:isOpen() then
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.UNLOCK_DAILY_CHALLENGE) then
return true
end
end
end end
-- 检查礼包(首充/章节/新手/助力/成长/金币顺序) -- 检查礼包(首充/章节/新手/助力/成长/金币顺序)

View File

@ -128,6 +128,9 @@ function DailyChallengeData:getFinalBossInfo()
return return
end end
local mapCfg = self:getMapConfig() local mapCfg = self:getMapConfig()
if not mapCfg then
return
end
return ConfigManager:getConfig("monster")[mapCfg.monster[#mapCfg.monster]] return ConfigManager:getConfig("monster")[mapCfg.monster[#mapCfg.monster]]
end end