fix: keep best-of-three grand finals open for results
Allow a separate grand final format and repair prematurely completed finals without dropping accepted games. Replay the correction record alongside subsequent results.
This commit is contained in:
1 parent
38a89b5374
commit
7e0cd7cb19
21 files changed
+914
-23
No files matched your search
@@ -21,7 +21,7 @@ interface PublicMatchSource {
|
||||
gameCount: number;
|
||||
gameMode: MatchGameMode;
|
||||
roundRobinMaxRounds?: number;
|
||||
doubleElimination?: { resetFinalEnabled?: boolean };
|
||||
doubleElimination?: { resetFinalEnabled?: boolean; grandFinalGameCount?: 1 | 3 | 5 };
|
||||
hostUserId?: IdLike;
|
||||
participants: Array<{
|
||||
userId: IdLike;
|
||||
@@ -81,6 +81,8 @@ export function presentPublicMatch(
|
||||
? {
|
||||
doubleEliminationResetFinalEnabled:
|
||||
source.doubleElimination?.resetFinalEnabled ?? false,
|
||||
doubleEliminationGrandFinalGameCount:
|
||||
source.doubleElimination?.grandFinalGameCount ?? 1,
|
||||
}
|
||||
: {}),
|
||||
...(source.hostUserId
|
||||
|
||||
Reference in new issue
Block a user