summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-18 19:31:59 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit2629cba9b8f8a48e5fb96333da42760ce040221a (patch)
tree0e3987cc1b1f415be2ec0c95b4e1eefd1b3abe2d /rules.js
parent9f968838f3a80a21543c03afe9ced9f6725dcf51 (diff)
downloadandean-abyss-2629cba9b8f8a48e5fb96333da42760ce040221a.tar.gz
Placing guerrilla in Ambush is optional if none available.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js27
1 files changed, 19 insertions, 8 deletions
diff --git a/rules.js b/rules.js
index 2a992be..71d6a52 100644
--- a/rules.js
+++ b/rules.js
@@ -1,6 +1,13 @@
"use strict"
-// TODO: rules material - reference 6.3.3 Drug Profits to 5.2.2 should be 4.5.3
+// TODO: 1st Devision CAP_1ST_DIV
+// TODO: rename LoC - "Bogota-Yopal LoC"
+
+// TODO: optional place ambush
+// TODO: optional place rally
+// TODO: check repeated alfonso
+
+// TODO: Civic Action
// TODO: don't auto-end 7th sf remove terror/sabotage (no undo suprise)
// TODO: don't auto-end free Rally with elite backing (no undo suprise)
@@ -1521,7 +1528,7 @@ function is_any_shipment_held() {
function remove_dropped_shipments() {
for (let sh = 0; sh < 4; ++sh) {
if (is_shipment_dropped(sh)) {
- log_transfer("Removed Shipment in S" + get_dropped_shipment_space(sh))
+ log_transfer("Removed Shipment in S" + get_dropped_shipment_space(sh) + ".")
remove_shipment(sh)
}
}
@@ -2200,8 +2207,8 @@ states.drug_bust = {
shipment(sh) {
log_space(get_dropped_shipment_space(sh), "Drug Bust")
remove_shipment(sh)
- logi_resources(GOVT, 6)
- add_resources(GOVT, 6)
+ logi_aid(6)
+ add_aid(6)
resume_drug_bust()
},
}
@@ -4249,12 +4256,16 @@ states.attack_place = {
view.prompt = `Attack in ${space_name[game.op.where]}: Place a Guerrilla.`
view.where = game.op.where
gen_place_piece(game.op.where, game.current, GUERRILLA)
+ view.actions.skip = 1
},
piece(p) {
logi("Placed " + piece_faction_type_name[game.current][GUERRILLA] + " from S" + piece_space(p))
place_piece(p, game.op.where)
goto_attack_remove()
- }
+ },
+ skip() {
+ goto_attack_remove()
+ },
}
function goto_attack_remove() {
@@ -5901,10 +5912,10 @@ function can_agitate(s) {
if (has_farc_control(s))
return true
if (!has_govt_control(s)) {
- if (game.alfonso) {
- if (game.alfonso.length < 3)
+ if (game.prop.alfonso) {
+ if (game.prop.alfonso.length < 3)
return true
- if (set_has(game.alfonso, s))
+ if (set_has(game.prop.alfonso, s))
return true
}
}