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

+3 -2
View File
@@ -4,7 +4,7 @@ import type { RoomControl } from './room-control';
export type AdminLobbyAction =
| { type: 'rules'; advanced: boolean }
| { type: 'techTokens' | 'strongholdCards'; enabled: boolean }
| { type: 'techTokens' | 'strongholdCards' | 'shortAllianceVictory'; enabled: boolean }
| { type: 'addBot'; faction: FactionId; difficulty: Difficulty }
| { type: 'removeBot' | 'assignHost'; target: string }
| {
@@ -30,6 +30,7 @@ export type AdminLobbyView = {
advanced: boolean;
techTokens: boolean;
strongholdCards: boolean;
shortAllianceVictory: boolean;
players: {
id: string;
name: string;
@@ -84,7 +85,7 @@ export function validAdminLobbyInput(value: unknown): value is AdminLobbyInput {
return (
keys(action, ['type', 'advanced']) && typeof action.advanced === 'boolean'
);
if (action.type === 'techTokens' || action.type === 'strongholdCards')
if (action.type === 'techTokens' || action.type === 'strongholdCards' || action.type === 'shortAllianceVictory')
return (
keys(action, ['type', 'enabled']) && typeof action.enabled === 'boolean'
);