lcy
2026-04-17 df5481265f8bf04548c8f51e5fffc9449547f423
602 坐骑优化-客户端 修复bug

1.修复解锁坐骑时没装备坐骑时,我方形象显示了已经装备状态的的bug
2.修复战力和属性显示
2个文件已修改
26 ■■■■■ 已修改文件
Main/System/Horse/HorseManager.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Horse/HorseWin.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Horse/HorseManager.cs
@@ -684,7 +684,17 @@
        attrDic.TryGetValue(attrID, out long value);
        specialAttrDic.TryGetValue(attrID, out long specialValue);
        skinAttrDic.TryGetValue(attrID, out long skinValue);
        GetNowRiderAttrInfo(out int nowRiderAttrID, out long nowRiderValue, out PlayerPropertyConfig playerPropertyConfig);
        if (nowRiderAttrID == attrID)
        {
            return value + specialValue + skinValue + nowRiderValue;
        }
        else
        {
        return value + specialValue + skinValue;
        }
    }
    public int GetAttrPer(int attrID)
@@ -696,8 +706,16 @@
            specialAttrDic.TryGetValue(pertype, out long specialValue);
            skinAttrDic.TryGetValue(pertype, out long skinValue);
            GetNowRiderAttrInfo(out int nowRiderAttrID, out long nowRiderValue, out PlayerPropertyConfig playerPropertyConfig);
            if (nowRiderAttrID == attrID)
            {
                return (int)(value + specialValue + skinValue + nowRiderValue);
            }
            else
            {
            return (int)(value + specialValue + skinValue);
        }
        }
        return 0;
    }
Main/System/Horse/HorseWin.cs
@@ -88,18 +88,10 @@
                () =>
                {
                    if (!UIHelper.CheckMoneyCount(horseConfig.UnlockValue, horseConfig.UnlockNeedCnt, 2))
                    {
                        return;
                    }
                    HorseManager.Instance.unLockHorseID = carouselView.CurrentHorseId;
                    HorseManager.Instance.SendHorseIDOP(carouselView.CurrentHorseId, 1);
                    HorseManager.Instance.unLockSkinID = skinID;
                    bool isChangeState = HorseManager.Instance.IsChangeState(HorseManager.Instance.GetUsingHorseSkinID(false));
                    if (!isChangeState)
                    {
                        HorseManager.Instance.SendSkinOP(2, skinID);
                    }
                });
        });
    }