Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support more variable best-of challenges #2173

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

DaWoblefet
Copy link
Member

Right now, the checkbox used for team-locked best-of-3 play is limited to VGC formats. This change allows the server's format list to determine which formats have the checkbox by default. This was initially requested by side servers, but also fixes a very minor bug of team-locked bo3 challenges showing up for Gen 4 VGC, where you weren't team-locked (you could move around items in between a best-of-three and change team order). I'm sure we'll eventually have a non-VGC format that wants best-of-n support on main as well.

It also allows the challenger to select any of the supported best-of-n options, rather than exclusively being best-of-3.
image

I'm not super sure about the policy of inline CSS; it's needed for the number input. I can move it to a proper CSS file if desired.

js/client-mainmenu.js Outdated Show resolved Hide resolved
js/client-mainmenu.js Outdated Show resolved Hide resolved
js/client-mainmenu.js Outdated Show resolved Hide resolved
@DaWoblefet DaWoblefet merged commit 463948f into smogon:master Nov 2, 2023
1 check passed
MathyFurret pushed a commit to MathyFurret/pokemon-showdown-client that referenced this pull request Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants