From 8bbced312e5b16dcd288ff1a42c598be6abd17be Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期一, 13 八月 2018 21:01:49 +0800
Subject: [PATCH] 【2454】转移N倍修行点

---
 System/Welfare/MultipleRealmPointModel.cs |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/System/Welfare/MultipleRealmPointModel.cs b/System/Welfare/MultipleRealmPointModel.cs
index f34af24..faf147b 100644
--- a/System/Welfare/MultipleRealmPointModel.cs
+++ b/System/Welfare/MultipleRealmPointModel.cs
@@ -5,8 +5,7 @@
 {
     public class MultipleRealmPointModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
     {
-        public const int MULTIPLEREALM_KEY = 20109;
-        public Redpoint multipleRed = new Redpoint(201,MULTIPLEREALM_KEY);
+        public Redpoint multipleRed = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, 20908);
         public string LocalRecord_Key = "MultipleRealmRecord";
         bool isNewDay = false;
         public override void Init()
@@ -41,6 +40,16 @@
           
         }
 
+        public bool IsOpen
+        {
+            get
+            {
+                OperationBase operation;
+                OperationTimeHepler.Instance.TryGetOperationTime(Operation.MultipRealmPoint, out operation);
+                return operation != null && operation.SatisfyOpenCondition() && operation.InDay(TimeUtility.ServerNow);
+            }
+        }
+
         private void RefreshOperationClose(Operation type)
         {
             if (type != Operation.MultipRealmPoint) return;

--
Gitblit v1.8.0