native polish: guest-locale banner, seamless guest sign-in (+local-game fix), 'Opponent's turn' label, deploy-authoritative dictionary #273
@@ -1451,12 +1451,11 @@
|
||||
return s.displayName;
|
||||
}
|
||||
|
||||
// turnLabel is the under-board status when it is not the viewer's turn: the opponent's name
|
||||
// once they have joined, or a generic "opponent's turn" while the seat is still empty (waiting).
|
||||
// turnLabel is the under-board status when it is not the viewer's turn, for online PvP and
|
||||
// vs_ai (the hotseat branch of the turn strip shows the seat's own name instead): a generic
|
||||
// "opponent's turn" rather than the opponent's name or the robot mark, so whose turn it is
|
||||
// reads the same everywhere. The seat row below still names each player.
|
||||
function turnLabel(): string {
|
||||
if (view?.game.vsAi) return '🤖';
|
||||
const s = view?.game.seats[view?.game.toMove ?? -1];
|
||||
if (s && s.accountId && s.accountId !== app.session?.userId) return s.displayName;
|
||||
return t('game.opponentsTurn');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user