Finished player choosing entry implementation; TODO: Award in non Buzzer Interaction

This commit is contained in:
EisiBaer committed 2023-07-13 20:22:46 +02:00
1 parent a798ec1558
commit 5ef8ea86bb
12 files changed
+200 -74

No files matched your search

+4
View File
@@ -32,6 +32,10 @@ onMounted( () => {
if( !gameStore.isHost ){
gameStore.isPlayerChoosing = data.payload.choosingPlayer === gameStore.playerId;
}
let choosingPlayerIndex = gameStore.players.findIndex( playerEntry => playerEntry._id === data.payload.choosingPlayer );
if( choosingPlayerIndex !== -1 ){
gameStore.players[choosingPlayerIndex].isChoosing = true;
}
router.push( { name: "gameWithGameId", params: { gameId: route.params.gameId } } );
});