fix(offline): scope the medal treatment to hotseat only
CI / changes (pull_request) Successful in 1s
CI / unit (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / ui (pull_request) Successful in 1m7s
CI / conformance (pull_request) Successful in 10s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m40s
CI / changes (pull_request) Successful in 1s
CI / unit (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
CI / ui (pull_request) Successful in 1m7s
CI / conformance (pull_request) Successful in 10s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m40s
Per owner: a vs_ai game (one human) keeps its 'you won/lost' status text AND its lobby medal — the hidden-status + per-seat-medal treatment applies only to hotseat, where 2-4 local players make a single 'you' meaningless. isLocalGameId -> game.hotseat at the three call sites (statusBlock, seat plaque, lobby card).
This commit is contained in:
@@ -33,8 +33,9 @@ export function resultBadge(game: GameView, myId: string): ResultBadge {
|
||||
|
||||
/**
|
||||
* seatMedal returns a per-SEAT place emoji for a finished game (empty while it is still in progress),
|
||||
* so a local (offline) game can show each player's medal on their plaque instead of a single
|
||||
* viewer-centric "you won/lost". The winner takes the trophy; the rest place by score (a draw — no
|
||||
* so a hotseat game can show each player's medal on their plaque instead of a single viewer-centric
|
||||
* "you won/lost" (which is meaningless with 2-4 local players). The winner takes the trophy; the
|
||||
* rest place by score (a draw — no
|
||||
* winner — gives every seat the medal). Mirrors the ranking in resultBadge, keyed by seat not viewer.
|
||||
*/
|
||||
export function seatMedal(game: GameView, seat: number): string {
|
||||
|
||||
Reference in New Issue
Block a user