summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-16 14:57:07 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-16 14:57:07 +0200
commit5dec2ac6358c28eef7eeb22e1a8e37ac4d14d0f4 (patch)
tree6ffac20736109c8d36846151050d9943b83cb8bc
parentded74a17df963602be8e0f56874df4dc983f2103 (diff)
downloadfield-cloth-gold-5dec2ac6358c28eef7eeb22e1a8e37ac4d14d0f4.tar.gz
Collections no score.
-rw-r--r--rules.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index e41513d..5d501d6 100644
--- a/rules.js
+++ b/rules.js
@@ -1016,7 +1016,14 @@ function goto_collections() {
if (own_hand().length > 0)
game.state = "collections_reveal"
else
+ goto_collections_score()
+}
+
+function goto_collections_score() {
+ if (calc_collections_score())
game.state = "collections_score"
+ else
+ end_turn()
}
states.collections_reveal = {
@@ -1029,7 +1036,7 @@ states.collections_reveal = {
tile(tile) {
reveal_tile_into_court(tile)
if (own_hand().length === 0)
- game.state = "collections_score"
+ goto_collections_score()
},
}