From 8d6138c0761e973c532e4c42c773e136c91e21af Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 17 Jul 2023 11:54:55 +0200 Subject: Place dragon with one click. --- rules.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'rules.js') 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." -- cgit v1.2.3