| 
					
				 | 
			
			
				@@ -36,6 +36,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             FieldDataManager.Instance.fieldInfos.bonusWeekly = 250; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             FieldDataManager.Instance.fieldInfos.bonusMaxLimit = 800; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             FieldDataManager.Instance.fieldInfos.highestLvls = new System.Collections.Generic.Dictionary<int, int>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            FieldDataManager.Instance.fieldInfos.taskDic = new System.Collections.Generic.Dictionary<int, int>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnShown() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -70,26 +71,27 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnDifficultyChange() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            FieldCfg cfg = FieldCfgArray.Instance.dataArray[_selectedIndex]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            bool isPass = InstanceZonesDataManager.CheckLevelPass(cfg.storyLvId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (_ui.m_c1.selectedIndex != ConstInstanceZonesSubType.Normal && !isPass) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            int priorIndex = _ui.m_c1.selectedIndex - 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            FieldCfg selectCfg = FieldCfgArray.Instance.dataArray[_ui.m_c1.selectedIndex]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            bool isPass = InstanceZonesDataManager.CheckLevelPass(selectCfg.storyLvId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (priorIndex >= 0 && !isPass) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 _ui.m_c1.selectedIndex = _selectedIndex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                StoryLevelCfg storyLevelCfg = StoryLevelCfgArray.Instance.GetCfg(cfg.storyLvId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                StoryLevelCfg storyLevelCfg = StoryLevelCfgArray.Instance.GetCfg(selectCfg.storyLvId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 string str = string.Format("完成主线{0}-{1}解锁", storyLevelCfg.chapterId, storyLevelCfg.order); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 PromptController.Instance.ShowFloatTextPrompt(str); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            int priorIndex = _ui.m_c1.selectedIndex - 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             FieldCfg priorfg = priorIndex >= 0 ? FieldCfgArray.Instance.dataArray[priorIndex] : null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (priorfg != null && _dataManager.GetHighestLvByChapterId(priorfg.id) < cfg.num) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (priorIndex >= 0 && _dataManager.GetHighestLvByChapterId(priorfg.id) < priorfg.num) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 _ui.m_c1.selectedIndex = _selectedIndex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 PromptController.Instance.ShowFloatTextPrompt("需通关前置关卡"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _selectedIndex = _ui.m_c1.selectedIndex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _curCfg = cfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _curCfg = FieldCfgArray.Instance.dataArray[_selectedIndex]; ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _dataManager.chapterId = _curCfg.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |