From 052bb69a8b50948052165847ea44312b8d4f6607 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 20 九月 2018 16:13:14 +0800
Subject: [PATCH] Merge branch 'master' into 1871天赋功能

---
 System/HappyXB/HappyXBModel.cs |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/System/HappyXB/HappyXBModel.cs b/System/HappyXB/HappyXBModel.cs
index 38958cb..c518dbb 100644
--- a/System/HappyXB/HappyXBModel.cs
+++ b/System/HappyXB/HappyXBModel.cs
@@ -314,6 +314,28 @@
             return dict;
         }
 
+        public XBGetItemConfig GetXBItemConfigByType(int type)
+        {
+            int lv = 0;
+            List<XBGetItemConfig> configlist = null;
+            xbTypeItemDict.TryGetValue(type, out configlist);
+            if (configlist != null)
+            {
+                for (int i = configlist.Count - 1; i > -1; i--)
+                {
+                    if (PlayerDatas.Instance.baseData.LV >= configlist[i].MinLV)
+                    {
+                        lv = configlist[i].MinLV;
+                        break;
+                    }
+                }
+            }
+            XBGetItemConfig xbItemConfig = null;
+            string key = StringUtility.Contact(type, lv);
+            xbGetItemDict.TryGetValue(key,out xbItemConfig);
+            return xbItemConfig;
+        }
+
         #region 澶勭悊鏈嶅姟绔暟鎹�
         public event Action RefreshXBTypeInfoAct;
         public event Action RefreshXBResultAct;

--
Gitblit v1.8.0