From 469dbd2e5a06faab01e8190d038db83edb12cbe0 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 16 五月 2019 17:52:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/Message/RichNormalEvent.cs |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/System/Message/RichNormalEvent.cs b/System/Message/RichNormalEvent.cs
index 696ee18..c4a4c58 100644
--- a/System/Message/RichNormalEvent.cs
+++ b/System/Message/RichNormalEvent.cs
@@ -178,7 +178,26 @@
                         colorType = RichTextMgr.Inst.presentRichText.colorType == RichText.ColorType.Dark ? 0 : 1;
                     }
                     var fightPoint = PlayerDatas.Instance.baseData.FightPoint;
-                    var targetValue = int.Parse(dic["myfightpoint"]);
+                    var targetValue = 0;
+                    var infoArray = dic["myfightpoint"].Split('_');
+                    if (infoArray.Length > 1)
+                    {
+                        switch (infoArray[0])
+                        {
+                            case "skytower":
+                                var config = SkyTowerConfig.Get(infoArray[1]);
+                                if (config != null)
+                                {
+                                    targetValue = config.fightPower;
+                                }
+                                break;
+                        }
+                    }
+                    else
+                    {
+                        int.TryParse(dic["myfightpoint"], out targetValue);
+                    }
+
                     if (fightPoint < targetValue)
                     {
                         var label = dic.ContainsKey("replacelabel1") ? dic["replacelabel1"] : string.Empty;

--
Gitblit v1.8.0