summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-01 18:55:19 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-02 12:54:18 +0200
commit810caa8282600aaf251979ec49a61ac38d22e17d (patch)
treecbc9530d479b7a5ce789ca07bea0100cb91010fb
parent506b33d99017e0befe000f0bdafd184b8ca6d994 (diff)
downloadfriedrich-810caa8282600aaf251979ec49a61ac38d22e17d.tar.gz
detach -> unstack
-rw-r--r--play.js2
-rw-r--r--rules.js16
2 files changed, 9 insertions, 9 deletions
diff --git a/play.js b/play.js
index 9e527fd..a1239fc 100644
--- a/play.js
+++ b/play.js
@@ -970,7 +970,7 @@ function on_update() {
action_button_with_argument("value", v, v)
for (let p = 0; p < 24; ++p)
- action_button_with_argument("detach", p, "Detach " + piece_button_name[p])
+ action_button_with_argument("unstack", p, "Unstack " + piece_button_name[p])
action_button("take", "Take")
action_button("give", "Give")
diff --git a/rules.js b/rules.js
index b0224af..92f959a 100644
--- a/rules.js
+++ b/rules.js
@@ -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) {