| | |
| | | {
|
| | | 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;
|
| | | }
|
| | |
|