diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-16 14:57:07 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-16 14:57:07 +0200 |
commit | 5dec2ac6358c28eef7eeb22e1a8e37ac4d14d0f4 (patch) | |
tree | 6ffac20736109c8d36846151050d9943b83cb8bc | |
parent | ded74a17df963602be8e0f56874df4dc983f2103 (diff) | |
download | field-cloth-gold-5dec2ac6358c28eef7eeb22e1a8e37ac4d14d0f4.tar.gz |
Collections no score.
-rw-r--r-- | rules.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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() }, } |