mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-28 14:18:04 -05:00
Best of 9 option for tournaments
This commit is contained in:
@@ -678,10 +678,11 @@ function GlobalMapCountInput({
|
||||
onChange={(e) => onSetCount(Number(e.target.value))}
|
||||
defaultValue={defaultValue}
|
||||
>
|
||||
<option value="1">1</option>
|
||||
<option value="3">3</option>
|
||||
<option value="5">5</option>
|
||||
<option value="7">7</option>
|
||||
{TOURNAMENT.AVAILABLE_BEST_OF.map((count) => (
|
||||
<option key={count} value={count}>
|
||||
{count}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</div>
|
||||
);
|
||||
@@ -797,7 +798,7 @@ function RoundMapList({
|
||||
</h3>
|
||||
{editing && includeRoundSpecificSelections ? (
|
||||
<div className="stack xs horizontal">
|
||||
{[1, 3, 5, 7].map((count) => (
|
||||
{TOURNAMENT.AVAILABLE_BEST_OF.map((count) => (
|
||||
<div key={count}>
|
||||
<Label htmlFor={`bo-${count}-${id}`}>Bo{count}</Label>
|
||||
<input
|
||||
|
||||
@@ -108,7 +108,7 @@ const tournamentRoundMaps = z.object({
|
||||
}),
|
||||
)
|
||||
.nullish(),
|
||||
count: numericEnum([1, 3, 5, 7]),
|
||||
count: numericEnum(TOURNAMENT.AVAILABLE_BEST_OF),
|
||||
type: z.enum(["BEST_OF", "PLAY_ALL"]),
|
||||
pickBan: z.enum(["COUNTERPICK", "BAN_2"]).nullish(),
|
||||
});
|
||||
|
||||
@@ -3,7 +3,7 @@ export const TOURNAMENT = {
|
||||
COUNTERPICK_MAPS_PER_MODE: 2,
|
||||
COUNTERPICK_MAX_STAGE_REPEAT: 2,
|
||||
COUNTERPICK_ONE_MODE_TOURNAMENT_MAPS_PER_MODE: 6,
|
||||
AVAILABLE_BEST_OF: [1, 3, 5, 7] as const,
|
||||
AVAILABLE_BEST_OF: [1, 3, 5, 7, 9] as const,
|
||||
ENOUGH_TEAMS_TO_START: 2,
|
||||
MIN_GROUP_SIZE: 3,
|
||||
MAX_GROUP_SIZE: 6,
|
||||
|
||||
Reference in New Issue
Block a user