Browse Source

技能书合成增加跳转

huangxiaoyue 1 year ago
parent
commit
2aa239590e

+ 20 - 1
GameClient/Assets/Editor/Excel/Scanner/ItemApproachScanner.cs

@@ -18,7 +18,7 @@ namespace GFGEditor
         public static void startScan()
         {
             ItemCfg[] dataArray = ItemCfgArray.Instance.dataArray;
-            GetApproachCall[] actions = new GetApproachCall[] { GetClothingShopApproach, GetLeaguePrayApproach, GetLeagueAnswerApproach, CheckStoreApproach, GetClothingSyntheticApproach, GetSuitGuideApproach, GetSuitSyntheticApproach, GetClothingDecomposeApproach, CheckClothingFosterApproach, CheckDailyTaskApproach, CheckWeeklyTaskApproach, GetZhaiXingApproach, GetStoryLevelApproach, GetArenaApproach };
+            GetApproachCall[] actions = new GetApproachCall[] { GetClothingShopApproach, GetLeaguePrayApproach, GetLeagueAnswerApproach, CheckStoreApproach, GetClothingSyntheticApproach, GetSuitGuideApproach, GetSuitSyntheticApproach, GetClothingDecomposeApproach, CheckClothingFosterApproach, CheckDailyTaskApproach, CheckWeeklyTaskApproach, GetZhaiXingApproach, GetStoryLevelApproach, GetArenaApproach  };
             Dictionary<SuitCfg, List<int>> suitDic = new Dictionary<SuitCfg, List<int>>();
             Dictionary<ItemCfg, List<int>> syntheticSuitDic = new Dictionary<ItemCfg, List<int>>();
             Dictionary<SuitCfg, Dictionary<string, string>> suitTagsDic = new Dictionary<SuitCfg, Dictionary<string, string>>();
@@ -807,5 +807,24 @@ namespace GFGEditor
             }
             return null;
         }
+
+        /// <summary>
+        /// 检测技能书合成途径
+        /// </summary>
+        /// <param name="itemId"></param>
+        /// <returns></returns>
+        private static string GetSkillBookSyntheticApproach(int itemId)
+        {
+            var itemCfg = ItemCfgArray.Instance.GetCfg(itemId);
+            if (itemCfg == null)
+            {
+                return null;
+            }
+            if (itemCfg.param1Arr.Length <= 0)
+            {
+                return null;
+            }
+            return ConstFunctionId.SKILLBOOK;
+        }
     }
 }

+ 4 - 0
GameClient/Assets/Game/HotUpdate/Constant/ConstFunctionId.cs

@@ -101,5 +101,9 @@ namespace GFGGame
         ///飞花令
         /// </summary>
         public const string ARENA = "ARENA";
+        /// <summary>
+        ///技能书
+        /// </summary>
+        public const string SKILLBOOK = "SKILLBOOK";
     }
 }

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachView.cs

@@ -360,6 +360,9 @@ namespace GFGGame
                         PromptController.Instance.ShowFloatTextPrompt("暂未加入雅集");
                     }
                     break;
+                case ConstFunctionId.SKILLBOOK:
+                    ViewManager.Show<ExchangeGoodsView>(_itemId);
+                    break;
             }
             if (isJump)
             {