summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-23 13:20:05 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-24 01:06:00 +0100
commitcad436948eb438b394a44073e9aeb2f73537f6f5 (patch)
treecb585df548c103a79ce47dfee7c9c17e477449e2
parent603227b60efb015854c9a7b0be0ffd01747cdb10 (diff)
downloadland-and-freedom-cad436948eb438b394a44073e9aeb2f73537f6f5.tar.gz
reword some messages. hide panels for observer.
-rw-r--r--play.css3
-rw-r--r--play.html2
-rw-r--r--rules.js6
-rw-r--r--rules.ts6
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 @@
</menu>
</details>
<button onclick="toggle_pieces()"><img src="/images/earth-africa-europe.svg"></button>
- <button onclick="toggle_trash()"><img src="images/all-seeing-eye.svg"></button>
+ <button id="toggle_trash" onclick="toggle_trash()"><img src="images/all-seeing-eye.svg"></button>
</div>
</header>
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