hch
2025-11-24 df658f77726c8f2079644fff7e7e1e1350d247f5
Main/System/Horse/HorseManager.cs
@@ -147,6 +147,12 @@
        RefreshSkinAttr();
        UpdateSkinRedpoint();
        OnSkinUpdateEvent?.Invoke();
        if (DTC0403_tagPlayerLoginLoadOK.finishedLogin && netPack.HorseSkinList[0].Star == 0)
        {
            UIManager.Instance.OpenWindow<HorseSkinGetWin>(netPack.HorseSkinList[0].HorseSkinID);
        }
    }
    #region 红点
@@ -469,17 +475,17 @@
    public Dictionary<int, long> GetAttrBySkinID(HorseSkinConfig config)
    {
        skinAttrDic.Clear();
        Dictionary<int, long> tmpDict = new Dictionary<int, long>();
        if (!config.InitAttrValueList.IsNullOrEmpty())
        {
            for (int i = 0; i < config.AttrIDList.Length; i++)
            {
                if (!skinAttrDic.ContainsKey(config.AttrIDList[i]))
                if (!tmpDict.ContainsKey(config.AttrIDList[i]))
                {
                    skinAttrDic[config.AttrIDList[i]] = 0;
                    tmpDict[config.AttrIDList[i]] = 0;
                }
                skinAttrDic[config.AttrIDList[i]] += config.InitAttrValueList[i];
                tmpDict[config.AttrIDList[i]] += config.InitAttrValueList[i];
            }
        }
@@ -492,14 +498,14 @@
            }
            for (int i = 0; i < config.AttrIDList.Length; i++)
            {
                if (!skinAttrDic.ContainsKey(config.AttrIDList[i]))
                if (!tmpDict.ContainsKey(config.AttrIDList[i]))
                {
                    skinAttrDic[config.AttrIDList[i]] = 0;
                    tmpDict[config.AttrIDList[i]] = 0;
                }
                skinAttrDic[config.AttrIDList[i]] += config.AttrPerStarAddList[i] * star;
                tmpDict[config.AttrIDList[i]] += config.AttrPerStarAddList[i] * star;
            }
        }
        return skinAttrDic;
        return tmpDict;
    }
    public HorseSkin GetSkinData(int skinID)