Indicate the user as the host when they create the lobby

This commit is contained in:
Oliver Akins 2022-03-13 01:58:03 -06:00
parent c68849fd1a
commit 4821f7a971
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -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}`);