少年修仙传客户端代码仓库
System/Mount/PlayerMountDatas.cs
@@ -332,7 +332,27 @@
        }
        int GetMinLV = 100;
        int GetMountID = 0;
        for (int j = 0; j < SortMount.Count; j++)
        for (int j = 0; j < SortMount.Count; j++)//选取出可升级坐骑等级最低且有未激活技能的坐骑
        {
            int Id = SortMount[j].HorseID;
            int GetHorseMaxLv = GetMountSkillMaxLV(Id);
            if (IntList.Contains(Id) && _DicHorse.ContainsKey(Id))
            {
                if (_DicHorse[Id].Lv < GetMinLV && _DicHorse[Id].Lv< GetHorseMaxLv)
                {
                    GetMinLV = _DicHorse[Id].Lv;
                    GetMountID = Id;
                }
            }
        }
        if (GetMountID != 0 && ASingleFeedRedPoint.ContainsKey(GetMountID))
        {
            ASingleFeedRedPoint[GetMountID].state = RedPointState.Simple;
            return;
        }
        for (int j = 0; j < SortMount.Count; j++)//选取出可升级坐骑等级最低
        {
            int Id = SortMount[j].HorseID;
            if (IntList.Contains(Id) && _DicHorse.ContainsKey(Id))
@@ -344,26 +364,10 @@
                }
            }
        }
        bool IsFullBool = true;
        foreach (var key in _DicHorse.Keys)
        if (GetMountID != 0 && ASingleFeedRedPoint.ContainsKey(GetMountID))
        {
            if (_DicHorse[key].Lv < 20)
            {
                IsFullBool = false;
            }
        }
        if (ASingleFeedRedPoint.ContainsKey(GetMountID))
        {
            if (_DicHorse[GetMountID].Lv < 20)
            {
                ASingleFeedRedPoint[GetMountID].state = RedPointState.Simple;
                return;
            }
            else if (_DicHorse[GetMountID].Lv >= 20 && IsFullBool)
            {
                ASingleFeedRedPoint[GetMountID].state = RedPointState.Simple;
                return;
            }
            ASingleFeedRedPoint[GetMountID].state = RedPointState.Simple;
            return;
        }
    }
@@ -378,9 +382,11 @@
        }
        int GetMountID = 0;
        int MountLV = 999;
        foreach (var key in _DicHorse.Keys)//无红点时跳转选中最低阶数
        foreach (var key in _DicHorse.Keys)//无红点时跳转选中最低阶数且未满级
        {
            if (_DicHorse[key].Lv < MountLV)
            var mountConfig = Config.Instance.Get<HorseConfig>(key);
            if (_DicHorse[key].Lv < MountLV && _DicHorse[key].Lv< mountConfig.MaxLV)
            {
                GetMountID = key;
                MountLV = _DicHorse[key].Lv;
@@ -389,7 +395,7 @@
        return GetMountID;
    }
    public int GetMountSkillMaxLV(int MountId)//获取灵宠最大技能等级
    public int GetMountSkillMaxLV(int MountId)//获取坐骑最大技能等级
    {
        int SkillLv = 0;
        foreach (var key in GetMountSkillAndItem.Keys)