summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-17 11:54:55 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-18 12:48:59 +0200
commit8d6138c0761e973c532e4c42c773e136c91e21af (patch)
tree34fd8098cfe54b7e788c9ec8957d68566b29516d
parenta0c6e4e0544413e3b851402fc88ed26a75645b51 (diff)
downloadfield-cloth-gold-8d6138c0761e973c532e4c42c773e136c91e21af.tar.gz
Place dragon with one click.
-rw-r--r--rules.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/rules.js b/rules.js
index 8f216f5..96a9bad 100644
--- a/rules.js
+++ b/rules.js
@@ -589,21 +589,10 @@ function pass_play_to_rival() {
// === THE ACTIONS: DRAGON ===
function goto_dragon() {
- game.state = "dragon_1"
+ game.state = "dragon"
}
-states.dragon_1 = {
- inactive: "Dragon",
- prompt() {
- view.prompt = "Dragon: Move the Dragon to an oval space."
- gen_action_token(TOKEN_DRAGON)
- },
- token(_) {
- game.state = "dragon_2"
- },
-}
-
-states.dragon_2 = {
+states.dragon = {
inactive: "Dragon",
prompt() {
view.prompt = "Dragon: Move the Dragon to an oval space."