[HQ] Fix hasExtraLife
This commit is contained in:
@@ -119,13 +119,8 @@ export default class Client {
|
||||
if (this.master) console.log(`${' HQ '.bgBlue.black}${' Question Summary '.bgGreen.black}`);
|
||||
if (!this.inTheGame) return;
|
||||
this.inTheGame = data.youGotItRight;
|
||||
if (!this.inTheGame && this.logging) console.log(`${` Client ${this.index} `.bgBlue.black}${' Eliminated '.bgRed.black}`);
|
||||
break;
|
||||
case 'gameStatus':
|
||||
if (!data.extraLivesRemaining) data.extraLivesRemaining = 0;
|
||||
if (!data.erase1sRemaining) data.erase1sRemaining = 0;
|
||||
this.hasEraser = data.erase1sRemaining > 0;
|
||||
this.hasExtraLife = data.extraLivesRemaining > 0;
|
||||
if (!this.inTheGame && this.logging) console.log(`${` Client ${this.index} `.bgBlue.black}${' Eliminated '.bgRed.black}`);
|
||||
break;
|
||||
case 'erase1Answer':
|
||||
this.erasedIndex = this.answers.findIndex(({ answerId }) => answerId === data.answerId);
|
||||
|
||||
Reference in New Issue
Block a user