summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-04 20:18:48 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-04 20:18:48 +0200
commitaa469c2d953315a28b70f3662a5f951c3ae44061 (patch)
tree81abc60166894b4ad25adbf1d9dea947a60bc1a2
parentb36ed77d9174aaac0a315da65001508cea5622ee (diff)
downloadland-and-freedom-aa469c2d953315a28b70f3662a5f951c3ae44061.tar.gz
Show bag of glory at game end.
-rw-r--r--rules.js1
-rw-r--r--rules.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 046a003..1ae8f66 100644
--- a/rules.js
+++ b/rules.js
@@ -365,6 +365,7 @@ function game_view(state, current) {
view.bag_of_glory = game.bag_of_glory;
if (game.state === 'game_over') {
view.prompt = game.victory;
+ view.bag_of_glory = game.bag_of_glory;
}
else if (current !== game.active &&
!game.active.includes(current)) {
diff --git a/rules.ts b/rules.ts
index 2727d4b..fa87589 100644
--- a/rules.ts
+++ b/rules.ts
@@ -555,6 +555,7 @@ function game_view(state: Game, current: Player | 'Observer') {
if (game.state === 'game_over') {
view.prompt = game.victory;
+ view.bag_of_glory = game.bag_of_glory;
} else if (
current !== game.active &&
!game.active.includes(current as Player)