summaryrefslogtreecommitdiff
path: root/events.txt
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-04-13 08:07:41 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-04-13 08:07:41 -0400
commit6e39409d94b2a9c26d73777ca8c49a373ee5c68c (patch)
tree884c9d141f3a343ef7bea062fbba8a093567de11 /events.txt
parent8b8e940e42b6e8088eecd8f9a3bb004143e8ac62 (diff)
downloadvijayanagara-6e39409d94b2a9c26d73777ca8c49a373ee5c68c.tar.gz
fix leaky event cmd
Diffstat (limited to 'events.txt')
-rw-r--r--events.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/events.txt b/events.txt
index a462906..98765bc 100644
--- a/events.txt
+++ b/events.txt
@@ -26,7 +26,8 @@ SHADED 1
log `Opposing Units to Rebelling in ${SPACE_NAME[game.vm.s]}.`
endif
endspace
- prompt "Free Attack in selected space."
+ clean_cmd
+ prompt `Free Attack in ${SPACE_NAME[game.vm.m[0]]}.`
space 1 (s === game.vm.m[0] && can_attack_in_space(s))
free_attack
endspace
@@ -50,6 +51,7 @@ SHADED 2
space 1 ((s === S_MOUNTAIN_PASSES || s === S_PUNJAB) && has_ds_unit(s) && has_piece(s, MI, TROOPS))
free_attack
endspace
+ clean_cmd
prompt "Rearrange up to 6 Units among Mountain Passes and Punjab and one other space."
space 1 (s !== S_MOUNTAIN_PASSES && s !== S_PUNJAB)
mark_space
@@ -464,11 +466,11 @@ EVENT 20
free_migrate
endif
endspace
- prompt `Rally in ${SPACE_NAME[game.vm.s]} for free.`
+ prompt `Rally in ${SPACE_NAME[game.vm.m[0]]} for free.`
space_opt 1 (game.vm.m[0] === s && can_rally_in_space(s))
free_rally
endspace
- prompt `Build in ${SPACE_NAME[game.vm.s]}.`
+ prompt `Build in ${SPACE_NAME[game.vm.m[0]]}.`
space_opt 1 (game.vm.m[0] === s && can_build_in_space(s))
free_build
endspace
@@ -695,13 +697,14 @@ EVENT 31
space_opt 1 (is_adjacent_to_city(C_VIJAYANAGARA, s) && can_migrate_in_space(s))
mark_space
free_migrate
+ clean_cmd
clean_p
prompt `Remove an opposing Unit from ${SPACE_NAME[game.vm.s]}.`
piece 1 (is_piece_in_event_space(p) && is_enemy_unit(p))
remove
endpiece
endspace
- prompt `Free Attack in ${SPACE_NAME[game.vm.s]}.`
+ prompt `Free Attack in ${SPACE_NAME[game.vm.m[0]]}.`
space_opt 1 (s === game.vm.m[0] && can_attack_in_space(s))
free_attack
endspace
@@ -825,6 +828,7 @@ SUCC 2
else
cav_resources (Math.min(game.prosperity[BK],3))
endif
+ clean_cmd
force_current VE
log_succ VE "Sangama brothers establish an empire."
any_limited_command