hch
2025-11-25 f9f2711f44e45021b4d69ca701bd25704578eef4
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)
        {