Browse Source

外网第一张不能跳过

zhaoyang 2 năm trước cách đây
mục cha
commit
e820aa4723

+ 10 - 5
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -109,11 +109,16 @@ namespace GFGGame
             {
                 _onCompleteStoryDialogCallParam = datas[3];
             }
-            // if (LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL)
-            // {
-            //临时设置都可以跳过对话
-            skipable = true;
-            // }
+            StoryChapterCfg chapterCfg = StoryChapterCfgArray.Instance.GetCfg(MainStoryDataManager.currentChapterCfgId);
+            if (LauncherConfig.netType == LauncherConfig.EnumNetType.TEMP && MainStoryDataManager.currentChapterCfgId == 10001 && !InstanceZonesDataManager.CheckChapterPass(chapterCfg.type, chapterCfg.subType, chapterCfg.id, chapterCfg.levelCount))
+            {
+                // 临时设置都可以跳过对话
+                skipable = false;
+            }
+            else
+            {
+                skipable = true;
+            }
 
             _ui.m_btnSkip.visible = skipable;