Skip to content

Commit

Permalink
Support best-of-n room titles (smogon#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaWoblefet authored and MathyFurret committed Mar 25, 2024
1 parent dc82636 commit 103338d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,9 @@ function toId() {
var columnChanged = false;

window.NonBattleGames = {rps: 'Rock Paper Scissors'};
for (var i = 3; i <= 9; i = i + 2) {
window.NonBattleGames['bestof' + i] = 'Best-of-' + i;
}
window.BattleFormats = {};
for (var j = 1; j < formatsList.length; j++) {
if (isSection) {
Expand Down
3 changes: 3 additions & 0 deletions src/panel-mainmenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ class MainMenuRoom extends PSRoom {
let column = 0;

window.NonBattleGames = {rps: 'Rock Paper Scissors'};
for (let i = 3; i <= 9; i = i + 2) {
window.NonBattleGames['bestof' + i] = 'Best-of-' + i;
}
window.BattleFormats = {};
for (let j = 1; j < formatsList.length; j++) {
const entry = formatsList[j];
Expand Down

0 comments on commit 103338d

Please sign in to comment.