From ea33e2f9c2cd4b0fbaf1447726afe5ae027fd5ae Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期五, 22 三月 2019 10:22:31 +0800
Subject: [PATCH] 6340  【前端】【2.0】境界改版开发单(优化表现)

---
 System/Realm/RealmModel.cs         |    6 ++++++
 System/Realm/RealmPoolBehaviour.cs |    4 ++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/System/Realm/RealmModel.cs b/System/Realm/RealmModel.cs
index 837c500..14e345e 100644
--- a/System/Realm/RealmModel.cs
+++ b/System/Realm/RealmModel.cs
@@ -14,6 +14,7 @@
         Dictionary<int, Dictionary<int, int[]>> m_RealmPreviewEquips = new Dictionary<int, Dictionary<int, int[]>>();
         List<List<int>> m_RealmStages = new List<List<int>>();
         public int realmMaxLevel { get; private set; }
+        public int realmPoolOpenLevel { get; private set; }
         public bool isBossPass { get; private set; }
         public int realmExpTime { get; private set; }
         public long startExp { get; private set; }
@@ -174,6 +175,11 @@
                     }
                     m_RealmPreviewEquips.Add(config.Lv, dict);
                 }
+
+                if (realmPoolOpenLevel == 0 && config.expRate != 0)
+                {
+                    realmPoolOpenLevel = config.Lv;
+                }
             }
 
             var funcConfig = FuncConfigConfig.Get("RealmExpTime");
diff --git a/System/Realm/RealmPoolBehaviour.cs b/System/Realm/RealmPoolBehaviour.cs
index adcf139..1c555aa 100644
--- a/System/Realm/RealmPoolBehaviour.cs
+++ b/System/Realm/RealmPoolBehaviour.cs
@@ -62,6 +62,10 @@
             {
                 WindowCenter.Instance.Open<RealmTakeExpWin>();
             }
+            else
+            {
+                SysNotifyMgr.Instance.ShowTip("RealmPoolOpenLimit", UIHelper.GetRealmName(model.realmPoolOpenLevel));
+            }
         }
 
         private void PerSecond()

--
Gitblit v1.8.0