少年修仙传客户端代码仓库
client_linchunjie
2019-01-10 ef27f51ea80cd84b7563f4114537a286e0e6b150
2855 【BUG】【1.5】玩家太久没上线,查询该玩家灵宠显示错误
1个文件已修改
16 ■■■■■ 已修改文件
System/RoleParticulars/RoleParticularModel.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/RoleParticulars/RoleParticularModel.cs
@@ -190,6 +190,10 @@
        {
            var fightPower = GetHorseSkillFightPower(_id, lv);
            var horseUpConfig = HorseUpConfig.GetHorseIDAndLV(_id, lv);
            if (horseUpConfig == null)
            {
                return 0;
            }
            Dictionary<int, int> dict = new Dictionary<int, int>();
            int[] propertys = horseUpConfig.AttrType;
            int[] values = horseUpConfig.AttrValue;
@@ -285,6 +289,10 @@
            for (int i = 0; i < horses.Count; i++)
            {
                HorseUpConfig horseUpConfig = HorseUpConfig.GetHorseIDAndLV(horses[i].id, horses[i].lv);
                if (horseUpConfig == null)
                {
                    continue;
                }
                GetHorseProperty(horses[i].id, horses[i].lv, ref propertyDict);
                int[] propertys = horseUpConfig.AttrType;
                int[] values = horseUpConfig.AttrValue;
@@ -463,6 +471,10 @@
                     return x.id == condition;
                 });
                HorseUpConfig horseUpConfig = HorseUpConfig.GetHorseIDAndLV(horseInfo.id, horseInfo.lv);
                if (horseUpConfig == null)
                {
                    return dict;
                }
                int[] propertys = horseUpConfig.AttrType;
                int[] values = horseUpConfig.AttrValue;
                for (int k = 0; k < propertys.Length; k++)
@@ -478,6 +490,10 @@
                for (int i = 0; i < horses.Count; i++)
                {
                    HorseConfig horseConfig = Config.Instance.Get<HorseConfig>(horses[i].id);
                    if (horseConfig == null)
                    {
                        continue;
                    }
                    if (horseConfig.Quality == condition)
                    {
                        HorseUpConfig horseUpConfig = HorseUpConfig.GetHorseIDAndLV(horses[i].id, horses[i].lv);