summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-18 01:09:33 +0100
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commita25493b00cbf46b7e25306ba32ab41b54e9a2279 (patch)
treea7e1f264ec1d1433908003f20a3b2290ecd61762 /tools
parentab7f13b30af38ab6b91a106552f572c56efbb8db (diff)
downloadandean-abyss-a25493b00cbf46b7e25306ba32ab41b54e9a2279.tar.gz
More events.
Diffstat (limited to 'tools')
-rw-r--r--tools/events.txt22
-rw-r--r--tools/gendata.js2
2 files changed, 14 insertions, 10 deletions
diff --git a/tools/events.txt b/tools/events.txt
index 2746b21..7911665 100644
--- a/tools/events.txt
+++ b/tools/events.txt
@@ -194,15 +194,17 @@ EVENT 25
endpiece
endspace
EVENT 28
+ optional
space 1 is_next_to_venezuela(s)
piece 3 is_piece_in_event_space(p) && is_insurgent_piece(p)
- remove_or_end
+ remove
endpiece
endspace
EVENT 33
+ optional
space 1 is_next_to_ecuador(s)
piece 3 is_piece_in_event_space(p) && is_insurgent_piece(p)
- remove_or_end
+ remove
endpiece
endspace
@@ -222,6 +224,8 @@ SHADED 38
EVENT 41
resources AUC -6
+ # TODO
+ # space 1 has_auc_piece(s)
space 1 true
piece 0 is_piece_in_event_space(p) && is_auc_piece(p)
remove
@@ -243,8 +247,9 @@ EVENT 61
resources CARTELS -6
EVENT 62
+ optional
piece 3 is_insurgent_piece(p) && is_zero_pop_forest(s)
- remove_or_end
+ remove
endpiece
EVENT 66
@@ -268,7 +273,7 @@ SHADED 24
remove
endpiece
endspace
- space 1 is_support(s)
+ space 1 is_city(s) && is_support(s)
set_neutral
endspace
@@ -343,7 +348,7 @@ SHADED 49
endspace
SHADED 25
- space 1 s === ANTIOQUIA || set_has(data.spaces[ANTIOQUIA].adjacent, s)
+ space 1 s === ANTIOQUIA || (is_dept(s) && set_has(data.spaces[ANTIOQUIA].adjacent, s))
place_any FARC
place_any FARC
place_any FARC
@@ -400,6 +405,9 @@ SHADED 28
sabotage
endspace
+EVENT 34
+ resources -1 -5
+
SHADED 34
select_insurgent
space 1 is_zero_pop_dept(s)
@@ -639,6 +647,4 @@ EVENT 16
select faction with most pieces (ties GOVT)
resources faction 5
-EVENT 34
- select_insurgent
- resources (game.current) -5
+
diff --git a/tools/gendata.js b/tools/gendata.js
index 0878d11..f417f12 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -473,8 +473,6 @@ adjacent("Vaupés", "Guaviare")
adjacent("Amazonas", "Vaupés")
adjacent("Amazonas", "Putumayo")
-data.coastal_spaces = [ "Cesar", "Atlántico", "Chocó", "Nariño" ].map(n=>space_name.indexOf(n)).sort((a,b)=>a-b)
-
for (let i = 0; i < spaces.length; ++i) {
spaces[i].adjacent.sort((a,b)=>a-b)
}