From f9f2711f44e45021b4d69ca701bd25704578eef4 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 25 十一月 2025 17:20:34 +0800
Subject: [PATCH] 121 【武将】武将系统 - 同步武将升级增加固定属性

---
 Main/Config/Configs/HeroQualityLVConfig.cs |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/Main/Config/Configs/HeroQualityLVConfig.cs b/Main/Config/Configs/HeroQualityLVConfig.cs
index dada278..ede60aa 100644
--- a/Main/Config/Configs/HeroQualityLVConfig.cs
+++ b/Main/Config/Configs/HeroQualityLVConfig.cs
@@ -1,6 +1,6 @@
 锘�//--------------------------------------------------------
 //    [Author]:           YYL
-//    [  Date ]:           2025骞�8鏈�5鏃�
+//    [  Date ]:           Tuesday, November 25, 2025
 //--------------------------------------------------------
 
 using System.Collections.Generic;
@@ -20,6 +20,8 @@
 	public int Quality;
 	public int HeroLV;
 	public int[] UPCostItem;
+	public int[] AttrIDList;
+	public int[] AttrValueList;
 
     public override int LoadKey(string _key)
     {
@@ -50,6 +52,34 @@
 					 int.TryParse(UPCostItemStringArray[i],out UPCostItem[i]);
 				}
 			}
+
+			if (tables[4].Contains("["))
+			{
+				AttrIDList = JsonMapper.ToObject<int[]>(tables[4]);
+			}
+			else
+			{
+				string[] AttrIDListStringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
+				AttrIDList = new int[AttrIDListStringArray.Length];
+				for (int i=0;i<AttrIDListStringArray.Length;i++)
+				{
+					 int.TryParse(AttrIDListStringArray[i],out AttrIDList[i]);
+				}
+			}
+
+			if (tables[5].Contains("["))
+			{
+				AttrValueList = JsonMapper.ToObject<int[]>(tables[5]);
+			}
+			else
+			{
+				string[] AttrValueListStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
+				AttrValueList = new int[AttrValueListStringArray.Length];
+				for (int i=0;i<AttrValueListStringArray.Length;i++)
+				{
+					 int.TryParse(AttrValueListStringArray[i],out AttrValueList[i]);
+				}
+			}
         }
         catch (Exception exception)
         {

--
Gitblit v1.8.0