少年修仙传客户端代码仓库
client_linchunjie
2019-05-07 29d3a2bb9324af5094fedc0ee13ff57ac44931d7
3335 修改缥缈仙域事件排序
1个文件已修改
16 ■■■■■ 已修改文件
System/HazyRegion/HazyRegionIncidentPanel.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyRegionIncidentPanel.cs
@@ -101,16 +101,20 @@
        {
            var lhs_config = HazyRegionConfig.Get(lhs);
            var rhs_config = HazyRegionConfig.Get(rhs);
            var lhs_precious = lhs_config.incidentType == (int)HazyRegionIncidentType.Precious;
            var rhs_precious = rhs_config.incidentType == (int)HazyRegionIncidentType.Precious;
            if (lhs_precious != rhs_precious)
            {
                return -lhs_precious.CompareTo(rhs_precious);
            }
            if (lhs_config.incidentType != rhs_config.incidentType)
            {
                return lhs_config.incidentType.CompareTo(rhs_config.incidentType);
            }
            if (lhs_config.incidentType == rhs_config.incidentType)
            {
                if ((HazyRegionIncidentType)lhs_config.incidentType == HazyRegionIncidentType.DemonKing)
                {
                    if (lhs_config.lineId != rhs_config.lineId)
                    {
                        return -lhs_config.lineId.CompareTo(rhs_config.lineId);
                    }
                }
            }
            return 0;
        }