summaryrefslogtreecommitdiff
path: root/events.txt
diff options
context:
space:
mode:
Diffstat (limited to 'events.txt')
-rw-r--r--events.txt88
1 files changed, 16 insertions, 72 deletions
diff --git a/events.txt b/events.txt
index dd1ac22..f5efe07 100644
--- a/events.txt
+++ b/events.txt
@@ -156,15 +156,8 @@ EVENT 14
# 5.1.3 - place base if possible!
# 5.1.3 - TODO Ecuador max 2
prompt "Place 1 Base and 3 Troops into any Department."
- space 1 is_dept(s) && can_place_piece(s, GOVT, BASE)
- auto_place GOVT BASE
- auto_place GOVT TROOPS
- auto_place GOVT TROOPS
- auto_place GOVT TROOPS
- return
- endspace
- prompt "Place 1 Base and 3 Troops into any Department."
- space 1 is_dept(s) && can_stack_any(s, GOVT)
+ if_space is_dept(s) && can_place_piece(s, GOVT, BASE)
+ or_space is_dept(s) && can_stack_any(s, GOVT)
auto_place GOVT BASE
auto_place GOVT TROOPS
auto_place GOVT TROOPS
@@ -174,19 +167,8 @@ EVENT 14
SHADED 14
# 5.1.3 - remove both base and cube if possible
prompt "Remove 1 Government Base and 1 cube from a Department."
- space 1 is_dept(s) && ( has_govt_base(s) && has_cube(s) )
- prompt "Remove 1 Government Base."
- piece 1 is_piece_in_event_space(p) && is_govt_base(p)
- remove
- endpiece
- prompt "Remove 1 cube."
- piece 1 is_piece_in_event_space(p) && is_cube(p)
- remove
- endpiece
- return
- endspace
- prompt "Remove 1 Government Base and 1 cube from a Department."
- space 1 is_dept(s) && ( has_govt_base(s) || has_cube(s) )
+ if_space is_dept(s) && ( has_govt_base(s) && has_cube(s) )
+ or_space is_dept(s) && ( has_govt_base(s) || has_cube(s) )
prompt "Remove 1 Government Base."
piece 1 is_piece_in_event_space(p) && is_govt_base(p)
remove
@@ -320,21 +302,8 @@ EVENT 24
SHADED 24
# 5.1.3 - 2 troops priority
prompt "Remove 2 Troops from a space with FARC pieces."
- space 1 has_farc_piece(s) && count_pieces(s, GOVT, TROOPS) >= 2
- prompt "Remove 2 Troops."
- piece 2 is_piece_in_event_space(p) && is_troops(p)
- remove
- endpiece
- save_space
- prompt "Shift a City with Support to Neutral."
- space 1 is_city(s) && is_support(s)
- set_neutral
- endspace
- restore_space
- return
- endspace
- prompt "Remove 2 Troops from a space with FARC pieces."
- space 1 has_farc_piece(s) && has_troops(s)
+ if_space has_farc_piece(s) && count_pieces(s, GOVT, TROOPS) >= 2
+ or_space has_farc_piece(s) && has_troops(s)
prompt "Remove 2 Troops."
piece 2 is_piece_in_event_space(p) && is_troops(p)
remove
@@ -435,17 +404,13 @@ SHADED 29
EVENT 30
# 5.1.3 - remove both farc zone and farc base if possible
prompt "Remove 1 FARC Zone and 1 FARC Base there."
- space 1 is_farc_zone(s) && has_piece(s, FARC, BASE)
+ if_space is_farc_zone(s) && has_piece(s, FARC, BASE)
+ or_space is_farc_zone(s)
remove_farc_zone
prompt "Remove 1 FARC Base."
piece 1 is_piece_in_event_space(p) && is_farc_base(p)
remove
endpiece
- return
- endspace
- prompt "Remove 1 FARC Zone and 1 FARC Base there."
- space 1 is_farc_zone(s)
- remove_farc_zone
endspace
@@ -510,14 +475,8 @@ SHADED 34
# 5.1.3 - place base if possible
# 5.1.3 - TODO Ecuador max 2
prompt "Place 2 Guerrillas and 1 Base into a 0 Population Department."
- space 1 is_zero_pop_dept(s) && can_place_piece(s, game.current, BASE)
- auto_place (game.current) BASE
- auto_place (game.current) GUERRILLA
- auto_place (game.current) GUERRILLA
- return
- endspace
- prompt "Place 2 Guerrillas and 1 Base into a 0 Population Department."
- space 1 is_zero_pop_dept(s) && can_stack_any(s, game.current)
+ if_space is_zero_pop_dept(s) && can_place_piece(s, game.current, BASE)
+ or_space is_zero_pop_dept(s) && can_stack_any(s, game.current)
auto_place (game.current) BASE
auto_place (game.current) GUERRILLA
auto_place (game.current) GUERRILLA
@@ -663,19 +622,14 @@ EVENT 43
# 5.1.3 - farc bases if possible
# 5.1.3 - TODO Ecuador max 2
prompt "Place 2 Terror and remove all FARC Bases from a Department with Troops."
- space 1 is_dept(s) && has_troops(s) && has_piece(s, FARC, BASE)
+ if_space is_dept(s) && has_troops(s) && has_piece(s, FARC, BASE)
+ or_space is_dept(s) && has_troops(s)
terror
terror
prompt "Remove all FARC Bases."
piece all is_piece_in_event_space(p) && is_farc_base(p)
remove
endpiece
- return
- endspace
- prompt "Place 2 Terror and remove all FARC Bases from a Department with Troops."
- space 1 is_dept(s) && has_troops(s)
- terror
- terror
endspace
SHADED 43
@@ -791,13 +745,8 @@ SHADED 49
# 5.1.3 - place base if possible
# 5.1.3 - TODO Ecuador max 2
prompt "Place an AUC Guerrilla and Base in any Department."
- space 1 is_dept(s) && can_place_piece(s, AUC, BASE)
- auto_place AUC BASE
- auto_place AUC GUERRILLA
- return
- endspace
- prompt "Place an AUC Guerrilla and Base in any Department."
- space 1 is_dept(s) && can_stack_any(s, AUC)
+ if_space is_dept(s) && can_place_piece(s, AUC, BASE)
+ or_space is_dept(s) && can_stack_any(s, AUC)
auto_place AUC BASE
auto_place AUC GUERRILLA
endspace
@@ -1109,13 +1058,8 @@ SHADED 64
EVENT 65
# 5.1.3 - do both shipment and base if possible
prompt "Place or remove 1 Shipment and Insurgent Base in any Mountain Department."
- space 1 is_mountain(s) && ( can_place_or_remove_shipment(s) && can_place_or_remove_insurgent_base(s) )
- place_or_remove_shipment
- place_or_remove_insurgent_base
- return
- endspace
- prompt "Place or remove 1 Shipment and Insurgent Base in any Mountain Department."
- space 1 is_mountain(s) && ( can_place_or_remove_shipment(s) || can_place_or_remove_insurgent_base(s) )
+ if_space is_mountain(s) && ( can_place_or_remove_shipment(s) && can_place_or_remove_insurgent_base(s) )
+ or_space is_mountain(s) && ( can_place_or_remove_shipment(s) || can_place_or_remove_insurgent_base(s) )
place_or_remove_shipment
place_or_remove_insurgent_base
endspace