Add optional short alliance victory
Verify and publish checkpoint container / container (push) Successful in 11m2s

This commit is contained in:
Quintine committed 2026-10-28 21:40:24 +11:00
1 parent 8fb9f59106
commit e896570f07
25 files changed
+632 -27

No files matched your search

+4
View File
@@ -137,6 +137,7 @@ export function freshAdminLobby(game: Game): boolean {
game.nexusCards != null ||
game.leaderSkills != null ||
game.ecazTreachery != null ||
(game.shortAllianceVictory !== undefined && typeof game.shortAllianceVictory !== 'boolean') ||
(game.discoveryEnabled !== undefined && game.discoveryEnabled !== false)
)
return false;
@@ -159,6 +160,7 @@ export function freshAdminLobby(game: Game): boolean {
'leaderSkills',
'ecazTreachery',
'discoveryEnabled',
'shortAllianceVictory',
]);
for (const key of new Set([...Object.keys(game), ...Object.keys(expected)]))
if (
@@ -196,6 +198,7 @@ export function projectAdminLobby(
advanced: false,
techTokens: false,
strongholdCards: false,
shortAllianceVictory: false,
players: [],
control,
};
@@ -228,6 +231,7 @@ export function projectAdminLobby(
advanced: game.advanced === true,
techTokens: !!game.techTokens,
strongholdCards: !!game.strongholdCards,
shortAllianceVictory: game.shortAllianceVictory === true,
host: game.players.some((player) => player.id === game.host)
? game.host
: null,