summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-19 18:12:56 +0100
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit5e01c299e74cf01e2b2a02163dd08130963550d7 (patch)
tree08d0ffb83bbf62537e339fbcb42d608d0a895c17
parent262a6271f285bd88434da0ea7f5407e709300c85 (diff)
downloadandean-abyss-5e01c299e74cf01e2b2a02163dd08130963550d7.tar.gz
Marked Eligible/Not Eligible.
-rw-r--r--events.txt3
-rw-r--r--rules.js6
2 files changed, 5 insertions, 4 deletions
diff --git a/events.txt b/events.txt
index a50b855..cada442 100644
--- a/events.txt
+++ b/events.txt
@@ -358,7 +358,6 @@ EVENT 30
endspace
SHADED 30
- eligible (game.current)
current GOVT
prompt Place FARC Zone.
space 1 is_possible_farc_zone(s)
@@ -454,7 +453,7 @@ SHADED 35
endspace
EVENT 36
- # COPY SHADED 30
+ # SEE SHADED 30
eligible (game.current)
current GOVT
prompt Place FARC Zone.
diff --git a/rules.js b/rules.js
index b26e332..b8ce671 100644
--- a/rules.js
+++ b/rules.js
@@ -7,8 +7,6 @@
// TODO: clean up init_free_operation and transitions
// TODO: resume_...activity - end automatically when no more possible
-// TODO: mark faction ineligible/eligible
-
// OP in a space -> next handler to cope with events/elite backing
// TODO: All - Ecuador and Panama stacking for place/move
@@ -285,6 +283,7 @@ exports.setup = function (seed, scenario, options) {
setup_deck(4, 0, 15)
}
+ game.deck[0] = 23
game.deck[1] = PROPAGANDA
log("DECK " + game.deck.join(", "))
@@ -5049,6 +5048,7 @@ function goto_reset_phase() {
game.cylinder[FARC] = ELIGIBLE
game.cylinder[AUC] = ELIGIBLE
game.cylinder[CARTELS] = ELIGIBLE
+ game.marked = 0
for_each_piece(FARC, GUERRILLA, set_underground)
for_each_piece(AUC, GUERRILLA, set_underground)
@@ -5788,6 +5788,8 @@ function vm_remove_sabotage() {
function vm_ineligible() {
let faction = vm_operand(1)
log("Marked " + faction_name[faction] + " Ineligible.")
+ if (game.cylinder[faction] === ELIGIBLE)
+ game.cylinder[faction] = INELIGIBLE
game.marked |= (1 << faction)
vm_next()
}