summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-04 20:27:11 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-05 00:27:02 +0200
commit2268f3d764fad034250e95ac316dcd1fdf426f53 (patch)
tree702750190b1d480765426e8a4ed6a730906e950a
parent3653a97c495d9bea069099456b9fe5f4af4ce3cf (diff)
downloadandean-abyss-2268f3d764fad034250e95ac316dcd1fdf426f53.tar.gz
Allow Cultivate from Rally (space) state.
Also remove extra undo step when selecting cultivation space.
-rw-r--r--rules.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 5e7c836..c32fd42 100644
--- a/rules.js
+++ b/rules.js
@@ -3988,6 +3988,11 @@ states.rally_space = {
view.prompt = `Rally: Place up to ${rally_count()} Guerrillas, build Base, or Move.`
view.where = game.op.where
+ if (game.sa) {
+ // allow Cultivate here because you can place a base into the selected Dept to rally more effectively
+ gen_special_activity(CARTELS, "cultivate", can_cultivate)
+ }
+
if (count_pieces(game.op.where, game.current, GUERRILLA) >= 2 && count_bases(game.op.where) < 2)
view.actions.base = 1
else
@@ -5485,7 +5490,6 @@ states.cultivate = {
gen_action_space(s)
},
space(s) {
- push_undo()
game.sa.where = s
if (is_selected_op_space(s) && is_dept(s) && game.op.type === "Rally") {
if (auto_place_piece(s, CARTELS, BASE)) {