Sfoglia il codice sorgente

章节模块提交

zhangyuqian 1 anno fa
parent
commit
e94e19c050

+ 9 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

@@ -153,7 +153,15 @@ namespace GFGGame
                 }
                 else
                 {
-
+                    StoryChapterCfg chapter = StoryChapterCfgArray.Instance.GetCfg(chapterID);
+                    if (!StoryController.CheckSuitGot(chapter.suitId))
+                    {
+                        PromptController.Instance.ShowFloatTextPrompt("需集齐所需套装");
+                    }
+                    else if (GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl) < chapterCfg.lvl)
+                    {
+                        PromptController.Instance.ShowFloatTextPrompt(string.Format("角色等级达到{0}级开启", chapterCfg.lvl));
+                    }
                 }
             }
 

+ 6 - 3
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -302,10 +302,13 @@ namespace GFGGame
 
             StoryLevelCfg lastLevelCfg = list[list.Count - 1];
             StoryChapterCfg LastChapterCfg = StoryChapterCfgArray.Instance.GetCfg(_chapterID + 1);
-            if (lastLevelCfg != null && InstanceZonesDataManager.CheckLevelPass(lastLevelCfg.id) && LastChapterCfg != null)
+            if (lastLevelCfg != null && InstanceZonesDataManager.CheckLevelPass(lastLevelCfg.id))
             {
-                _ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = true;
-                _ui.m_chapter.m_compChapterScroll.m_nextEffect.visible = true;
+                if(LastChapterCfg != null)
+                {
+                    _ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = true;
+                    _ui.m_chapter.m_compChapterScroll.m_nextEffect.visible = true;
+                }    
                 if (chapterCfg.suitId > 0 && chapterCfg.subType == 0)
                 {
                     _ui.m_targetSuit.visible = true;