diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-04-27 13:13:35 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | f67ba24cf94b7617752dd6047deeedda46b7841a (patch) | |
tree | 77c3eb55dc889b5b0cbd6103541fa546352dda99 /rules.js | |
parent | 198286ab6b25987e9c71decc3caf193ae9d9055e (diff) | |
download | andean-abyss-f67ba24cf94b7617752dd6047deeedda46b7841a.tar.gz |
Place Shipments with other faction pieces in Departments.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -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) { |