summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--events.txt16
-rw-r--r--rules.js12
2 files changed, 18 insertions, 10 deletions
diff --git a/events.txt b/events.txt
index 8c7f505..3fbb72b 100644
--- a/events.txt
+++ b/events.txt
@@ -102,9 +102,11 @@ SHADED 7
EVENT 8
current GOVT
- free_air_strike
- free_air_strike
- free_air_strike
+ repeat 3
+ if can_air_strike()
+ free_air_strike
+ endif
+ endrepeat
SHADED 8
resources GOVT -9
@@ -350,9 +352,11 @@ SHADED 26
EVENT 27
current GOVT
- free_govt_special_activity
- free_govt_special_activity
- free_govt_special_activity
+ repeat 3
+ if can_air_lift() || can_eradicate() || can_air_strike()
+ free_govt_special_activity
+ endif
+ endrepeat
SHADED 27
log "Until next Propaganda, no Government Special Activities where Guerrilla."
diff --git a/rules.js b/rules.js
index 09bf08a..d24fbd4 100644
--- a/rules.js
+++ b/rules.js
@@ -8381,9 +8381,11 @@ CODE[7 * 2 + 1] = [
// EVENT 8
CODE[8 * 2 + 0] = [
[ vm_current, GOVT ],
+ [ vm_repeat, 3 ],
+ [ vm_if, ()=>can_air_strike() ],
[ vm_free_air_strike ],
- [ vm_free_air_strike ],
- [ vm_free_air_strike ],
+ [ vm_endif ],
+ [ vm_endrepeat ],
[ vm_return ],
]
@@ -8739,9 +8741,11 @@ CODE[26 * 2 + 1] = [
// EVENT 27
CODE[27 * 2 + 0] = [
[ vm_current, GOVT ],
+ [ vm_repeat, 3 ],
+ [ vm_if, ()=>can_air_lift() || can_eradicate() || can_air_strike() ],
[ vm_free_govt_special_activity ],
- [ vm_free_govt_special_activity ],
- [ vm_free_govt_special_activity ],
+ [ vm_endif ],
+ [ vm_endrepeat ],
[ vm_return ],
]