Skip to content

Commit

Permalink
add rating groups to queue extractor function
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps committed Aug 19, 2024
1 parent 0f79f6f commit f27d3e7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public class TeamMatchmakingService implements InitializingBean {
@Getter
private final ObservableList<MatchmakerQueueInfo> queues = JavaFxUtil.attachListToMap(
FXCollections.synchronizedObservableList(FXCollections.observableArrayList(
queue -> new Observable[]{queue.selectedProperty(), queue.matchingStatusProperty()})), nameToQueue);
queue -> new Observable[]{queue.selectedProperty(), queue.matchingStatusProperty(), queue.getActiveRatingGroups()})), nameToQueue);
private final FilteredList<MatchmakerQueueInfo> queuesWithPotentialMatches = new FilteredList<>(queues, this::queueHasPotentialMatch);
private final FilteredList<MatchmakerQueueInfo> selectedQueues = new FilteredList<>(queues,
MatchmakerQueueInfo::isSelected);
Expand Down Expand Up @@ -262,7 +262,6 @@ private boolean queueHasPotentialMatch(MatchmakerQueueInfo queue) {
}

private static boolean couldMatch(Integer otherRating, LeaderboardRating rating, Leaderboard leaderboard) {
log.info("triggered");
// 1v1 uses a different way of matching people.
if (Objects.equals(leaderboard.technicalName(), "ladder_1v1")) {
return Math.abs(otherRating - rating.mean()) < 100;
Expand Down

0 comments on commit f27d3e7

Please sign in to comment.