From cad87129e5ea2fd23cc195ed0444bd38f1117aa7 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 05 八月 2025 15:51:54 +0800 Subject: [PATCH] 79 【常规】背包 - 随机宝箱界面,自选宝箱界面,获得物品奖励界面 --- Main/System/GeneralConfig/GeneralDefine.cs | 39 +++++++++++++++++++++------------------ 1 files changed, 21 insertions(+), 18 deletions(-) diff --git a/Main/System/GeneralConfig/GeneralDefine.cs b/Main/System/GeneralConfig/GeneralDefine.cs index 302a4e9..39b5caf 100644 --- a/Main/System/GeneralConfig/GeneralDefine.cs +++ b/Main/System/GeneralConfig/GeneralDefine.cs @@ -146,6 +146,7 @@ public static Dictionary<int, List<int>> DropItemEffectMapID { get; private set; } public static Dictionary<int, List<int>> itemPutInPackDict { get; private set; } + public static Dictionary<int, int> itemMoneyCountDict { get; private set; } //鑳屽寘涓敤浜庡睍绀鸿揣甯佹暟閲忕殑鐗╁搧 public static List<int> RebornAutoFightMapID { get; private set; } public static string teamWorldCall; @@ -458,24 +459,26 @@ // checkShowSwitchAccount.Add(item.ToString()); // } - // var putInItemPack = FuncConfigConfig.Get("PutInItemPack"); - // LitJson.JsonData itemPutInData = LitJson.JsonMapper.ToObject(putInItemPack.Numerical1); - // itemPutInPackDict = new Dictionary<int, List<int>>(); - // foreach (var _key in itemPutInData.Keys) - // { - // var itemTypeData = itemPutInData[_key]; - // int packType = int.Parse(_key); - // List<int> itemTypes = new List<int>(); - // itemPutInPackDict.Add(packType, itemTypes); - // if (itemTypeData.IsArray) - // { - // for (i = 0; i < itemTypeData.Count; i++) - // { - // int itemType = int.Parse(itemTypeData[i].ToString()); - // itemTypes.Add(itemType); - // } - // } - // } + var putInItemPack = FuncConfigConfig.Get("PutInItemPack"); + LitJson.JsonData itemPutInData = LitJson.JsonMapper.ToObject(putInItemPack.Numerical1); + itemPutInPackDict = new Dictionary<int, List<int>>(); + foreach (var _key in itemPutInData.Keys) + { + var itemTypeData = itemPutInData[_key]; + int packType = int.Parse(_key); + List<int> itemTypes = new List<int>(); + itemPutInPackDict.Add(packType, itemTypes); + if (itemTypeData.IsArray) + { + for (int i = 0; i < itemTypeData.Count; i++) + { + int itemType = int.Parse(itemTypeData[i].ToString()); + itemTypes.Add(itemType); + } + } + } + + itemMoneyCountDict = ConfigParse.ParseIntDict(putInItemPack.Numerical2); // //鎷惧彇璐甸噸鐗╁搧 // FuncConfigConfig importantItemType = FuncConfigConfig.Get("AutoBuyDrug"); -- Gitblit v1.8.0