We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28540dd commit 1eaf7ecCopy full SHA for 1eaf7ec
1 file changed
src/ps/games/snakesladders/index.ts
@@ -146,12 +146,9 @@ export class SnakesLadders extends BaseGame<State> {
146
ctx.header = `${this.turn} rolled a ${this.state.lastRoll}...`;
147
} else if (side === this.turn) {
148
ctx.header = this.$T('GAME.YOUR_TURN');
149
- } else if (side) {
150
- ctx.header = this.$T('GAME.WAITING_FOR_OPPONENT');
151
- ctx.dimHeader = true;
152
} else if (this.turn) {
153
- const current = this.players[this.turn];
154
- ctx.header = this.$T('GAME.WAITING_FOR_PLAYER', { player: `${current.name}${this.sides ? ` (${this.turn})` : ''}` });
+ ctx.header = this.$T('GAME.WAITING_FOR_PLAYER', { player: this.players[this.turn].name });
+ if (side) ctx.dimHeader = true;
155
}
156
return render.bind(this.renderCtx)(ctx);
157
0 commit comments