feat(ui): add Nuke Wars mode option to single-player modal and GameMode enum; normalize nukeWars settings

This commit is contained in:
Restart2008
2025-10-25 11:30:20 -07:00
parent fe011eb0cb
commit 76c46b24dd
2 changed files with 2 additions and 8 deletions
+1 -8
View File
@@ -48,14 +48,7 @@ export class SinglePlayerModal extends LitElement {
@state() private teamCount: TeamCountConfig = 2;
@state() private disabledUnits: UnitType[] = [];
<<<<<<< Updated upstream
=======
private readonly nukeWarsDisabledUnits = [
UnitType.MIRV,
];
>>>>>>> Stashed changes
private readonly nukeWarsDisabledUnits = [UnitType.MIRV];
private userSettings: UserSettings = new UserSettings();
connectedCallback() {
+1
View File
@@ -151,6 +151,7 @@ export const isGameType = (value: unknown): value is GameType =>
export enum GameMode {
FFA = "Free For All",
Team = "Team",
NukeWars = "Nuke Wars",
}
export const isGameMode = (value: unknown): value is GameMode =>
isEnumValue(GameMode, value);