Skip to content

Commit

Permalink
Change OU suspect matchmaking range
Browse files Browse the repository at this point in the history
  • Loading branch information
TheImmortal authored Nov 7, 2016
1 parent 0c6e0b1 commit e8fa447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ class GlobalRoom {

// search must be within range
let searchRange = 100, elapsed = Date.now() - Math.min(search1.time, search2.time);
if (formatid === 'ou' || formatid === 'oucurrent' || formatid === 'randombattle') searchRange = 50;
if (formatid === 'ou' || formatid === 'oucurrent' || formatid === 'oususpecttest' || formatid === 'randombattle') searchRange = 50;
searchRange += elapsed / 300; // +1 every .3 seconds
if (searchRange > 300) searchRange = 300 + (searchRange - 300) / 10; // +1 every 3 sec after 300
if (searchRange > 600) searchRange = 600;
Expand Down

0 comments on commit e8fa447

Please sign in to comment.