summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-02 23:10:40 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit17d599beb94ec286cab5c994f639a557f2cce4bb (patch)
tree619cc23144adb158ff4045d116e4682551849b21 /rules.js
parent52b0899094c4c419499791307b4410c215d0c6d6 (diff)
downloadandean-abyss-17d599beb94ec286cab5c994f639a557f2cce4bb.tar.gz
Don't auto-buy first Civic Action in LimOp and Free Train.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js19
1 files changed, 13 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index d81b874..8d8e971 100644
--- a/rules.js
+++ b/rules.js
@@ -2780,10 +2780,7 @@ states.train = {
},
civic() {
push_undo()
- if (game.op.limited && game.op.spaces.length > 0)
- goto_train_civic_action(game.op.spaces[0])
- else
- game.state = "train_civic"
+ game.state = "train_civic"
},
end_train: end_operation,
}
@@ -2845,7 +2842,7 @@ states.vm_train_base_or_civic = {
},
civic() {
push_undo()
- goto_train_civic_action(game.vm.s)
+ game.state = "vm_train_civic"
},
end_train: end_operation,
}
@@ -2945,6 +2942,17 @@ function end_train_civic_action() {
game.state = "train_done"
}
+states.vm_train_civic = {
+ prompt() {
+ view.prompt = `Train: Buy Civic Action.`
+ gen_action_space(game.vm.s)
+ },
+ space(s) {
+ push_undo()
+ goto_train_civic_action(s)
+ },
+}
+
states.train_civic = {
prompt() {
view.prompt = `Train: Buy Civic Action.`
@@ -2959,7 +2967,6 @@ states.train_civic = {
select_op_space(s, 3)
goto_train_civic_action(s)
},
- end_train: end_operation,
}
states.train_civic_buy = {