From 5e01c299e74cf01e2b2a02163dd08130963550d7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 19 Mar 2023 18:12:56 +0100 Subject: Marked Eligible/Not Eligible. --- events.txt | 3 +-- rules.js | 6 ++++-- 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() } -- cgit v1.2.3