summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-28 01:43:21 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit31c91a4441fff0e24534d5004be809ed55e6b5f6 (patch)
tree7154392a9f30c69fd0fd1b38e71738e283c5a5bd /rules.js
parentb145e50811b3869ce3acd3a61e27407efc579926 (diff)
downloadandean-abyss-31c91a4441fff0e24534d5004be809ed55e6b5f6.tar.gz
Fix Cultivate placement (only in Rally _Department_).
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 0a54d51..0ebc435 100644
--- a/rules.js
+++ b/rules.js
@@ -5458,7 +5458,7 @@ function goto_cultivate() {
states.cultivate = {
prompt() {
- view.prompt = "Cultivate: Select Department or City to place or relocate Base."
+ view.prompt = "Cultivate: Relocate Base to City or Department (or place if Rally Department)."
for (let s = first_pop; s <= last_pop; ++s)
if (can_cultivate_in_space(s))
gen_action_space(s)
@@ -5466,7 +5466,7 @@ states.cultivate = {
space(s) {
push_undo()
game.sa.where = s
- if (is_selected_op_space(s) && game.op.type === "Rally") {
+ if (is_selected_op_space(s) && is_dept(s) && game.op.type === "Rally") {
if (auto_place_piece(s, CARTELS, BASE)) {
log_space(game.sa.where, "Cultivate")
logi("Placed Cartels Base")