mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 17:06:39 +00:00
feat(ui): add Nuke Wars mode option to single-player modal and GameMode enum; normalize nukeWars settings
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user