From 8f064be0b76b41ef6c77cbcba1d8856de4637e07 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 16 五月 2019 14:35:34 +0800
Subject: [PATCH] 3335 任务反馈
---
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