summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-24 23:20:57 +0100
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commita01cf792e1d44595d584fb45e75e6b61047c04a3 (patch)
treeec774957dbcf055e233e78f404d4d2117a3023c5
parent2e6cd785c9fbe6b7f79f484786de87e723ce3f8c (diff)
downloadandean-abyss-a01cf792e1d44595d584fb45e75e6b61047c04a3.tar.gz
Automatic Pass.
-rw-r--r--rules.js20
1 files changed, 5 insertions, 15 deletions
diff --git a/rules.js b/rules.js
index f19de35..7cf1b54 100644
--- a/rules.js
+++ b/rules.js
@@ -2006,21 +2006,11 @@ function goto_pass() {
push_undo()
game.cylinder[game.current] = SOP_PASS
log_h2(faction_name[game.current] + " - Pass")
- game.state = "pass"
-}
-
-states.pass = {
- prompt() {
- view.prompt = `Pass: ${faction_name[game.current]} +${game.current === GOVT ? 3 : 1} Resources.`
- gen_action_resources(game.current)
- },
- resources(_) {
- if (game.current === GOVT)
- add_resources(game.current, 3)
- else
- add_resources(game.current, 1)
- resume_event_card()
- },
+ if (game.current === GOVT)
+ add_resources(game.current, 3)
+ else
+ add_resources(game.current, 1)
+ resume_event_card()
}
// === OPERATIONS ===