少年修仙传客户端代码仓库
client_linchunjie
2018-10-18 2bdca925498c2b06de803cd6ec1704faef8eec30
System/Mount/PlayerMountDatas.cs
@@ -318,25 +318,20 @@
        }
    }
    public int GetMinLvMount()
    public int GetMinExpMount()
    {
        int GetMountID = 0;
        int GetMountLv = 0;
        int NeedExp = 99999999;
        for (int i = 0; i < SortMount.Count; i++)
        {
            int horseID = SortMount[i].HorseID;
            if (_DicHorse.ContainsKey(horseID))
            if (_DicHorse.ContainsKey(horseID) && _DicHorse[horseID].Lv < Config.Instance.Get<HorseConfig>(horseID).MaxLV)
            {
                var key = horseID;
                if (GetMountID == 0 && _DicHorse[key].Lv < GetMountSkillMaxLV(key))
                int _NeedExp = HorseUpConfig.GetHorseIDAndLV(horseID, (_DicHorse[horseID].Lv)).NeedExp;
                if (_NeedExp - _DicHorse[horseID].Exp < NeedExp)
                {
                    GetMountID = key;
                    GetMountLv = _DicHorse[key].Lv;
                }
                if (_DicHorse[key].Lv < GetMountLv && _DicHorse[key].Lv < GetMountSkillMaxLV(key))
                {
                    GetMountID = key;
                    GetMountLv = _DicHorse[key].Lv;
                    NeedExp = _NeedExp - _DicHorse[horseID].Exp;
                    GetMountID = horseID;
                }
            }
        }