From af752cb5721629490d9361ee9cf253f0d2ea9059 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 16 八月 2018 20:35:45 +0800
Subject: [PATCH] 法宝魂修改

---
 Core/GameEngine/Model/Config/TreasurePrivilegeConfig.cs |   67 +++++++++++++++++++--------------
 1 files changed, 39 insertions(+), 28 deletions(-)

diff --git a/Core/GameEngine/Model/Config/TreasurePrivilegeConfig.cs b/Core/GameEngine/Model/Config/TreasurePrivilegeConfig.cs
index 7689253..e1880ae 100644
--- a/Core/GameEngine/Model/Config/TreasurePrivilegeConfig.cs
+++ b/Core/GameEngine/Model/Config/TreasurePrivilegeConfig.cs
@@ -1,14 +1,14 @@
-锘�//--------------------------------------------------------
-//    [Author]:			绗簩涓栫晫
-//    [  Date ]:		   Monday, June 25, 2018
-//--------------------------------------------------------
-
-using UnityEngine;
-using System;
-
-namespace TableConfig {
-
-    
+锘�//--------------------------------------------------------
+//    [Author]:			绗簩涓栫晫
+//    [  Date ]:		   Thursday, August 16, 2018
+//--------------------------------------------------------
+
+using UnityEngine;
+using System;
+
+namespace TableConfig {
+
+    
 	public partial class TreasurePrivilegeConfig : ConfigBase {
 
 		public int PrivilegeID { get ; private set ; }
@@ -18,16 +18,18 @@
 		public int maxValue { get ; private set ; }
 		public string attr { get ; private set; } 
 		public string itemAward { get ; private set; } 
+		public int[] successList;
+		public int treasureId { get ; private set ; }
 		public string Icon { get ; private set; } 
 		public string Name { get ; private set; } 
 		public string targetDescription { get ; private set; } 
-
+
 		public override string getKey()
         {
             return PrivilegeID.ToString();
-        }
-
-		public override void Parse() {
+        }
+
+		public override void Parse() {
 			try
             {
                 PrivilegeID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
@@ -44,22 +46,31 @@
 			
 				itemAward = rawContents[6].Trim();
 			
-				Icon = rawContents[7].Trim();
+				string[] successListStringArray = rawContents[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
+				successList = new int[successListStringArray.Length];
+				for (int i=0;i<successListStringArray.Length;i++)
+				{
+					 int.TryParse(successListStringArray[i],out successList[i]);
+				}
 			
-				Name = rawContents[8].Trim();
+				treasureId=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; 
 			
-				targetDescription = rawContents[9].Trim();
+				Icon = rawContents[9].Trim();
+			
+				Name = rawContents[10].Trim();
+			
+				targetDescription = rawContents[11].Trim();
             }
             catch (Exception ex)
             {
                 DebugEx.Log(ex);
-            }
-		}
-	
-	}
-
-}
-
-
-
-
+            }
+		}
+	
+	}
+
+}
+
+
+
+

--
Gitblit v1.8.0