少年修仙传客户端代码仓库
client_Zxw
2018-12-05 9be17feb5bdb4e65afe92509ba4b889745d50bcc
System/Mount/PlayerMountDatas.cs
@@ -363,20 +363,22 @@
    }
    public int GetMinExpMount()
    {
        int GetMountID = 0;
        int NeedExp = 99999999;
        for (int i = 0; i < SortMount.Count; i++)
    {
        foreach (var key in ASingleFeedRedPoint.Keys)//当存在驯养红点时选中当有红点的那只
        {
            int horseID = SortMount[i].HorseID;
            if (_DicHorse.ContainsKey(horseID) && _DicHorse[horseID].Lv < Config.Instance.Get<HorseConfig>(horseID).MaxLV)
            if (ASingleFeedRedPoint[key].state == RedPointState.Simple)
            {
                int _NeedExp = HorseUpConfig.GetHorseIDAndLV(horseID, (_DicHorse[horseID].Lv)).NeedExp;
                if (_NeedExp - _DicHorse[horseID].Exp < NeedExp)
                {
                    NeedExp = _NeedExp - _DicHorse[horseID].Exp;
                    GetMountID = horseID;
                }
                return key;
            }
        }
        int GetMountID = 0;
        int MountLV = 999;
        foreach (var key in _DicHorse.Keys)//无红点时跳转选中最低阶数
        {
            if (_DicHorse[key].Lv < MountLV)
            {
                GetMountID = key;
                MountLV = _DicHorse[key].Lv;
            }
        }
        return GetMountID;