hch
2025-09-14 249c2184d4e72f2f8a40ac9a156bf54849d0e191
Main/Config/Configs/HeroSkinConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           2025年8月4日
//    [  Date ]:           2025年9月3日
//--------------------------------------------------------
using System.Collections.Generic;
@@ -12,11 +12,8 @@
{
    static HeroSkinConfig()
    {
        if (isInit)
        {
            return;
        }
        LazyInit();
        // 访问过静态构造函数
        visit = true;
    }
    public int SkinID;
@@ -25,6 +22,7 @@
   public int[] AllBatAttrIDList;
   public int[] AllBatAttrValueList;
   public string Tachie;
   public float[] TachieParam;
   public string SquareIcon;
   public string RectangleIcon;
   public string SpineRes;
@@ -99,11 +97,25 @@
         Tachie = tables[5];
         SquareIcon = tables[6];
         if (tables[6].Contains("["))
         {
            TachieParam = JsonMapper.ToObject<float[]>(tables[6]);
         }
         else
         {
            string[] TachieParamStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            TachieParam = new float[TachieParamStringArray.Length];
            for (int i=0;i<TachieParamStringArray.Length;i++)
            {
                float.TryParse(TachieParamStringArray[i],out TachieParam[i]);
            }
         }
         RectangleIcon = tables[7];
         SquareIcon = tables[7];
         SpineRes = tables[8];
         RectangleIcon = tables[8];
         SpineRes = tables[9];
        }
        catch (Exception exception)
        {