少年修仙传客户端代码仓库
client_linchunjie
2019-06-13 6464f7eb2161eb47af5b5c88154f85d7eb4d140e
4021 【BUG】【2.0】VIPBoss副本错误
1个文件已修改
21 ■■■■■ 已修改文件
System/Dungeon/DungeonVictoryWin.cs 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/DungeonVictoryWin.cs
@@ -189,9 +189,15 @@
            {
                m_RewardSorts.AddRange(serveritems);
                int _mapid = dungeonModel.GetDataMapIdByMapId(PlayerDatas.Instance.baseData.MapID);
                if (_mapid == 60010 || _mapid == 31130)
                switch (_mapid)
                {
                    m_RewardSorts.Sort(CompareTrialItemIndex);
                    case 31130:
                    case 60010:
                        m_RewardSorts.Sort(CompareTrialItemIndex);
                        break;
                    case 31240:
                        m_RewardSorts.Sort(CompareItemColor);
                        break;
                }
            }
@@ -583,6 +589,17 @@
                return x.ItemID.CompareTo(y.ItemID);
            }
        }
        protected int CompareItemColor(ServerItem x, ServerItem y)
        {
            var config_x = ItemConfig.Get(x.ItemID);
            var config_y = ItemConfig.Get(y.ItemID);
            if (config_x.ItemColor != config_y.ItemColor)
            {
                return -config_x.ItemColor.CompareTo(config_y.ItemColor);
            }
            return 0;
        }
    }
}