diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-06-01 18:55:19 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-06-02 12:54:18 +0200 |
commit | 810caa8282600aaf251979ec49a61ac38d22e17d (patch) | |
tree | cbc9530d479b7a5ce789ca07bea0100cb91010fb /rules.js | |
parent | 506b33d99017e0befe000f0bdafd184b8ca6d994 (diff) | |
download | friedrich-810caa8282600aaf251979ec49a61ac38d22e17d.tar.gz |
detach -> unstack
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1634,26 +1634,26 @@ states.move_general = { view.prompt += " Chevert may not unstack." if (count_generals(here) === 3) { // two options: leave alone, or leave with chevert - // to leave with chevert, detach non-chevert - // to leave alone, detach non-chevert, then detach chevert + // to leave with chevert, unstack non-chevert + // to leave alone, unstack non-chevert, then unstack chevert if (game.selected.length === 3) { for (let p of game.selected) { if (p !== GEN_CHEVERT) { gen_action_piece(p) - gen_action_detach(p) + gen_action_unstack(p) } } } if (game.selected.length === 2) { gen_action_piece(GEN_CHEVERT) - gen_action_detach(GEN_CHEVERT) + gen_action_unstack(GEN_CHEVERT) } } } else { if (game.selected.length > 1) { for (let p of game.selected) { gen_action_piece(p) - gen_action_detach(p) + gen_action_unstack(p) } } } @@ -1698,7 +1698,7 @@ states.move_general = { give() { game.state = "move_give" }, - detach(p) { + unstack(p) { set_delete(game.selected, p) }, piece(p) { @@ -4525,8 +4525,8 @@ function gen_action_card(c) { gen_action("card", c) } -function gen_action_detach(p) { - gen_action("detach", p) +function gen_action_unstack(p) { + gen_action("unstack", p) } function log(msg) { |