From cad436948eb438b394a44073e9aeb2f73537f6f5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 23 Mar 2025 13:20:05 +0100 Subject: reword some messages. hide panels for observer. --- play.css | 3 ++- play.html | 2 +- rules.js | 6 +++--- rules.ts | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/play.css b/play.css index 556db15..4b5d5e7 100644 --- a/play.css +++ b/play.css @@ -93,7 +93,8 @@ body header.fascist.your_turn { background-color: hsl(30, 35%, 65%); } display: none; } -body.Observer #hand_panel { +body.Observer #hand_panel, +body.Observer #toggle_trash { display: none; } diff --git a/play.html b/play.html index 52fa18a..3d94fd1 100644 --- a/play.html +++ b/play.html @@ -32,7 +32,7 @@ - + diff --git a/rules.js b/rules.js index db7e2e1..9006bf0 100644 --- a/rules.js +++ b/rules.js @@ -2427,7 +2427,7 @@ function resolve_final_bid() { for (const c of game.selected_cards[f]) { player_bid += cards[c].strength; } - log(`${faction_player_map[f]} bids ${player_bid}`); + log(`${faction_player_map[f]} bid ${player_bid} cards`); if (player_bid === highest_bid) { winners.push(f); } @@ -2791,11 +2791,11 @@ function resolve_effect(effect, source) { } function win_final_bid(faction_id) { log_br(); - log(`${faction_player_map[faction_id]} wins the Final Bid`); + log(`${faction_player_map[faction_id]} won the Final Bid`); game.glory.push(faction_id); } function win_game(player, glory) { - game_over(player, `${player} wins the game with a total of ${glory} Glory!`); + game_over(player, `${player} won the game with a total of ${glory} Glory!`); } function draw_card(deck) { clear_undo(); diff --git a/rules.ts b/rules.ts index 5867403..08a6a4f 100644 --- a/rules.ts +++ b/rules.ts @@ -2986,7 +2986,7 @@ function resolve_final_bid() { for (const c of game.selected_cards[f]) { player_bid += (cards[c] as PlayerCard).strength; } - log(`${faction_player_map[f]} bids ${player_bid}`); + log(`${faction_player_map[f]} bid ${player_bid} cards`); if (player_bid === highest_bid) { winners.push(f); } else if (player_bid > highest_bid) { @@ -3461,12 +3461,12 @@ function resolve_effect(effect: Effect, source?: EffectSource): EngineNode { function win_final_bid(faction_id: FactionId) { log_br(); - log(`${faction_player_map[faction_id]} wins the Final Bid`); + log(`${faction_player_map[faction_id]} won the Final Bid`); game.glory.push(faction_id); } function win_game(player: Player, glory: number) { - game_over(player, `${player} wins the game with a total of ${glory} Glory!`); + game_over(player, `${player} won the game with a total of ${glory} Glory!`); } // #endregion -- cgit v1.2.3