summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-19 20:16:49 +0100
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit448a28121f60bde4a875289b0bbb559e7c9cd771 (patch)
tree90b87b887f961c79325296b22ba9396a4068a879
parentdd15800d006e67b5aa24a4dfcc10f8ab79b25033 (diff)
downloadandean-abyss-448a28121f60bde4a875289b0bbb559e7c9cd771.tar.gz
Alfonso Cano.
-rw-r--r--rules.js21
1 files changed, 19 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 1d458c8..1063b46 100644
--- a/rules.js
+++ b/rules.js
@@ -10,7 +10,6 @@
// OP in a space -> next handler to cope with events/elite backing
// TODO: All - Ecuador and Panama stacking for place/move
-// TODO: Agitation - Alfonso Cano
// TODO: Kidnap - Drug Ransom
let states = {}
@@ -4822,7 +4821,19 @@ function can_civic_action(s) {
}
function can_agitate(s) {
- return game.support[s] > -2 && has_farc_control(s)
+ if (game.support[s] > -2) {
+ if (has_farc_control(s))
+ return true
+ if (!has_govt_control(s)) {
+ if (game.alfonso) {
+ if (game.alfonso.length < 3)
+ return true
+ if (set_has(game.alfonso, s))
+ return true
+ }
+ }
+ }
+ return false
}
function goto_support_phase() {
@@ -4831,6 +4842,9 @@ function goto_support_phase() {
log_h3("Civic Action")
game.current = GOVT
game.state = "civic_action"
+ game.alfonso = 0
+ if (has_momentum(MOM_ALFONSO_CANO))
+ game.alfonso = []
}
states.civic_action = {
@@ -4871,6 +4885,8 @@ states.agitation = {
},
space(s) {
push_undo()
+ if (!has_farc_control(s))
+ set_add(game.alfonso, s)
add_resources(FARC, -1)
if (has_terror(s))
remove_terror(s)
@@ -4879,6 +4895,7 @@ states.agitation = {
},
next() {
clear_undo()
+ delete game.alfonso
goto_election()
},
}