From 13e3dc37bb88decd7e40fa5011819a6d83453bbd Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 17 一月 2020 17:12:18 +0800
Subject: [PATCH] 0312 系统设置增加贵重物品拾取配置
---
System/GeneralConfig/GeneralDefine.cs | 7 +++++++
Fight/Stage/Dungeon/DropItemManager.cs | 5 +++--
System/SystemSetting/HangUpSetModel.cs | 2 +-
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/Fight/Stage/Dungeon/DropItemManager.cs b/Fight/Stage/Dungeon/DropItemManager.cs
index 4d87309..2a1cfb5 100644
--- a/Fight/Stage/Dungeon/DropItemManager.cs
+++ b/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;
diff --git a/System/GeneralConfig/GeneralDefine.cs b/System/GeneralConfig/GeneralDefine.cs
index b4251b4..74d80f6 100644
--- a/System/GeneralConfig/GeneralDefine.cs
+++ b/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>();
diff --git a/System/SystemSetting/HangUpSetModel.cs b/System/SystemSetting/HangUpSetModel.cs
index 2a74f7c..af28f5d 100644
--- a/System/SystemSetting/HangUpSetModel.cs
+++ b/System/SystemSetting/HangUpSetModel.cs
@@ -12,7 +12,7 @@
whiteEquip, //鐧借壊瑁呭
purpleEquip,
gem, //瀹濈煶
- drug, //鑽搧
+ drug, //鑽搧锛堟敼璐甸噸鐗╁搧锛�
necklaces, //椤归摼銆佷粰鍣�
coins, //閲戝竵
other,
--
Gitblit v1.8.0