Просмотр исходного кода

增加飞花令物品获取路径

huangxiaoyue 1 год назад
Родитель
Сommit
3ab58e3c62

+ 17 - 2
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 };
+            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>>();
@@ -283,7 +283,7 @@ namespace GFGEditor
             {
                 if (cfg.itemId == itemId)
                 {
-                    return "FU_ZHUANG_DIAN=" + ConstStoreId.CLOTHING_STORE_ID; ;
+                    return "FU_ZHUANG_DIAN=" + ConstStoreId.CLOTHING_STORE_ID; 
                 }
             }
 
@@ -366,6 +366,21 @@ namespace GFGEditor
         }
 
         /// <summary>
+        /// 尝试获取飞花令产出途径
+        /// </summary>
+        /// <param name="itemId"></param>
+        /// <returns></returns>
+        private static string GetArenaApproach(int itemId)
+        {
+            if (itemId == ConstItemID.ARENA_CUR_COST)
+            {
+                return "ARENA";
+            }
+            return null;
+        }
+            
+
+        /// <summary>
         /// 尝试获取剧情关卡产出途径
         /// </summary>
         /// <param name="itemId"></param>

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

@@ -97,6 +97,9 @@ namespace GFGGame
         ///商城-竞技场
         /// </summary>
         public const string STORE_ARENA = "STORE_ARENA";
-
+        /// <summary>
+        ///飞花令
+        /// </summary>
+        public const string ARENA = "ARENA";
     }
 }

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

@@ -175,6 +175,14 @@ namespace GFGGame
                     // this.Hide();
                     isJump = ViewManager.Show<ClothingDecomposeView>();
                     break;
+                case ConstFunctionId.ARENA:
+                    if (!ArenaDataManager.Instance.IsSeasonOpen)
+                    {
+                        PromptController.Instance.ShowFloatTextPrompt("赛季未开始");
+                        return;
+                    }
+                    isJump = ViewManager.Show<ArenaView>();
+                    break;
                 case ConstFunctionId.STORE:
 
                     int storeTabId = int.Parse(infos[1]);