Assume everyone is liberal so we only ever need to change the fascist players
This commit is contained in:
parent
16c9376a55
commit
435d806b92
1 changed files with 1 additions and 6 deletions
|
|
@ -47,7 +47,7 @@ export class Game {
|
|||
public add_player(player: string, id: string, is_host:boolean=false): void {
|
||||
this._players[player] = {
|
||||
position: undefined,
|
||||
role: undefined,
|
||||
role: `liberal`,
|
||||
host: is_host,
|
||||
socket: id,
|
||||
};
|
||||
|
|
@ -95,11 +95,6 @@ export class Game {
|
|||
players.splice(player_index, 1);
|
||||
};
|
||||
|
||||
// Everyone else is a liberal
|
||||
for (var player of players) {
|
||||
this._players[player].role = `liberal`;
|
||||
};
|
||||
|
||||
// Create the deck for the game
|
||||
for (var i = 0; i <= DECK.total; i++) {
|
||||
if (i <= DECK.fascist) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue