summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-27 13:13:35 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commitf67ba24cf94b7617752dd6047deeedda46b7841a (patch)
tree77c3eb55dc889b5b0cbd6103541fa546352dda99 /rules.js
parent198286ab6b25987e9c71decc3caf193ae9d9055e (diff)
downloadandean-abyss-f67ba24cf94b7617752dd6047deeedda46b7841a.tar.gz
Place Shipments with other faction pieces in Departments.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js22
1 files changed, 15 insertions, 7 deletions
diff --git a/rules.js b/rules.js
index cdf2c5d..62dc30f 100644
--- a/rules.js
+++ b/rules.js
@@ -1,5 +1,7 @@
"use strict"
+// TODO: free Bribe (event 60) needs logging info
+
// TODO: log_br after free op/special
// TODO: if Assault and no valid assault targets, only allow air lift to enable Assault
@@ -2091,18 +2093,24 @@ states.transfer_shipment = {
if (can_transfer_shipment(sh))
gen_action_shipment(sh)
} else {
+ view.selected_shipment = game.transfer.shipment
let p = get_held_shipment_piece(game.transfer.shipment)
let s = piece_space(p)
- for_each_piece(game.current, GUERRILLA, (pp,ss) => {
- if (pp !== p && ss === s)
- gen_action_piece(pp)
- })
if (!is_player_farc())
- gen_piece_in_space(s, FARC, GUERRILLA)
+ for_each_piece(FARC, GUERRILLA, (pp,ss) => {
+ if (pp !== p && ss === s)
+ gen_action_piece(pp)
+ })
if (!is_player_auc())
- gen_piece_in_space(s, AUC, GUERRILLA)
+ for_each_piece(AUC, GUERRILLA, (pp,ss) => {
+ if (pp !== p && ss === s)
+ gen_action_piece(pp)
+ })
if (!is_player_cartels())
- gen_piece_in_space(s, CARTELS, GUERRILLA)
+ for_each_piece(CARTELS, GUERRILLA, (pp,ss) => {
+ if (pp !== p && ss === s)
+ gen_action_piece(pp)
+ })
}
},
shipment(sh) {