Skip to content

Commit

Permalink
feat: add language to game object.
Browse files Browse the repository at this point in the history
  • Loading branch information
vetom committed Feb 24, 2019
1 parent 6f6fff4 commit 253f53d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function newGame() {
gameCandidate = {
deck: {},
weight: 100,
players: 0
players: 0,
language: '',
};
}

Expand Down Expand Up @@ -129,6 +130,7 @@ function getGame(players, language, chosenCards, gameMode) {
}
gameCandidate.deck = languages.translateDeck(gameCandidate.deck, language);
gameCandidate.screenplay = screenplayFromGame(gameCandidate.deck, chosenCards);
gameCandidate.language = language;
return gameCandidate;
}

Expand Down

0 comments on commit 253f53d

Please sign in to comment.