From eda22bcd9683f3a94e0744da60d23808272c627f Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 13 八月 2018 17:28:00 +0800
Subject: [PATCH] 1528 冰晶矿脉里面角色死亡复活后怪物血条位置显示异常
---
Core/GameEngine/Model/Config/DamageNumConfig.cs | 56 ++++++++++++++++++++++++++++----------------------------
1 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/Core/GameEngine/Model/Config/DamageNumConfig.cs b/Core/GameEngine/Model/Config/DamageNumConfig.cs
index 92b4d3f..64b5633 100644
--- a/Core/GameEngine/Model/Config/DamageNumConfig.cs
+++ b/Core/GameEngine/Model/Config/DamageNumConfig.cs
@@ -9,43 +9,43 @@
namespace TableConfig {
- public partial class DamageNumConfig : ConfigBase {
+ public partial class DamageNumConfig : ConfigBase {
+
+ public string id { get ; private set; }
+ public int realm { get ; private set ; }
+ public int prefix { get ; private set ; }
+ public int plus { get ; private set ; }
+ public int minus { get ; private set ; }
+ public int[] nums;
- public string id { get ; private set; }
- public int realm { get ; private set ; }
- public int prefix { get ; private set ; }
- public int plus { get ; private set ; }
- public int minus { get ; private set ; }
- public int[] nums;
-
- public override string getKey()
- {
- return id.ToString();
+ public override string getKey()
+ {
+ return id.ToString();
}
public override void Parse() {
- try
- {
- id = rawContents[0].Trim();
-
- realm=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
-
- prefix=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
-
- plus=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
-
- minus=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
-
+ try
+ {
+ id = rawContents[0].Trim();
+
+ realm=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
+
+ prefix=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
+
+ plus=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
+
+ minus=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
+
string[] numsStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
nums = new int[numsStringArray.Length];
for (int i=0;i<numsStringArray.Length;i++)
{
int.TryParse(numsStringArray[i],out nums[i]);
- }
- }
- catch (Exception ex)
- {
- DesignDebug.Log(ex);
+ }
+ }
+ catch (Exception ex)
+ {
+ DesignDebug.Log(ex);
}
}
--
Gitblit v1.8.0