From 50a125af7aebd26bd922065015bf43c81b1f8a8b Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 23 十月 2018 19:25:25 +0800
Subject: [PATCH] 4295 【前端】【1.2】还原加点功能

---
 System/RolePromote/RolePromoteModel.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/System/RolePromote/RolePromoteModel.cs b/System/RolePromote/RolePromoteModel.cs
index 9151ee1..b5274ed 100644
--- a/System/RolePromote/RolePromoteModel.cs
+++ b/System/RolePromote/RolePromoteModel.cs
@@ -134,6 +134,8 @@
 
         RoleModel roleModel { get { return ModelCenter.Instance.GetModel<RoleModel>(); } }
 
+        RolePointModel rolePointModel { get { return ModelCenter.Instance.GetModel<RolePointModel>(); } }
+
         #region 閰嶇疆
         public Dictionary<int, int> wingLv2GenerDict = new Dictionary<int, int>();
         public Dictionary<int, List<RoleStrongerConfig>> roleStrongerDic = new Dictionary<int, List<RoleStrongerConfig>>();
@@ -533,7 +535,7 @@
                 _id == methodData.fairyHeartRedpoint.id ||
                 _id == realmModel.realmRedpoint.id ||
                 _id == gemModel.gemTagRedPoint.id ||
-                //_id == blastFurnaceModel.MakeDrugRedpoint.id ||
+                _id == rolePointModel.redpoint.id ||
                 IsTreasureRedpoint(_id))
             {
                 CheckPromoteDetailEffect();
@@ -569,6 +571,8 @@
                 case PromoteDetailType.BetterEquip:
                     var dict = modelInterface.CheckBetterEquipByRealm();
                     return dict != null && dict.Count > 0;
+                case PromoteDetailType.AddPoint:
+                    return rolePointModel.redpoint.state == RedPointState.Simple;
                 case PromoteDetailType.EquipStrength:
                     return strengthengmodel.StrengthRedpoint.state == RedPointState.Simple;
                 case PromoteDetailType.Mount:
@@ -617,6 +621,7 @@
         public enum PromoteDetailType
         {
             BetterEquip,
+            AddPoint,
             EquipStrength,
             Mount,
             Pet,

--
Gitblit v1.8.0