Indicate the user as the host when they create the lobby
This commit is contained in:
parent
c68849fd1a
commit
4821f7a971
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ const data: WebsocketEvent = {
|
|||
name: data.name,
|
||||
colour: colours[Math.floor(Math.random() * colours.length)],
|
||||
ship: spaceships[0],
|
||||
host: true,
|
||||
});
|
||||
let game = new Game(host);
|
||||
game.log.info(`New game created by ${data.name}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue