少年修仙传客户端代码仓库
hch
2020-01-17 13e3dc37bb88decd7e40fa5011819a6d83453bbd
0312 系统设置增加贵重物品拾取配置
3个文件已修改
14 ■■■■ 已修改文件
Fight/Stage/Dungeon/DropItemManager.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GeneralConfig/GeneralDefine.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/SystemSetting/HangUpSetModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Stage/Dungeon/DropItemManager.cs
@@ -520,8 +520,9 @@
                //Debug.Log(" |-- 配置了项链或者仙器不拾取, 这个是项链或者仙器, 不拾取");
                return true;
            }
            // 药品
            else if ((ItemType)_itemModel.Type == ItemType.Drugs
            // 药品(改贵重物品)
            else if (Array.IndexOf(GeneralDefine.ImportantItemType, _itemModel.Type) >= 0
                  && Array.IndexOf(GeneralDefine.ImportantItemID, _itemModel.ID) >= 0
                  && HangUpSetModel.Instance.GetBool(HangUpAutoBoolType.drug))
            {
                return true;
System/GeneralConfig/GeneralDefine.cs
@@ -132,6 +132,8 @@
    public static float PrefightAtkRange { get; private set; }
    public static Dictionary<int, string> multipleRealmImgDict { get; private set; }
    public static int[] ImportantItemType { get; private set; }
    public static int[] ImportantItemID { get; private set; }
    public static int inGameDownLoadHighestLevelPoint { get; private set; }
@@ -409,6 +411,11 @@
                }
            }
            //拾取贵重物品
            FuncConfigConfig importantItemType = FuncConfigConfig.Get("AutoBuyDrug");
            ImportantItemType = LitJson.JsonMapper.ToObject<int[]>(importantItemType.Numerical2);
            ImportantItemID = LitJson.JsonMapper.ToObject<int[]>(importantItemType.Numerical3);
            FuncConfigConfig nxxdImg = FuncConfigConfig.Get("NXXDPicture");
            LitJson.JsonData nxxdData = LitJson.JsonMapper.ToObject(nxxdImg.Numerical1);
            multipleRealmImgDict = new Dictionary<int, string>();
System/SystemSetting/HangUpSetModel.cs
@@ -12,7 +12,7 @@
    whiteEquip, //白色装备
    purpleEquip,
    gem, //宝石
    drug, //药品
    drug, //药品(改贵重物品)
    necklaces, //项链、仙器
    coins, //金币
    other,