From 6e39409d94b2a9c26d73777ca8c49a373ee5c68c Mon Sep 17 00:00:00 2001 From: Joël Simoneau Date: Sun, 13 Apr 2025 08:07:41 -0400 Subject: fix leaky event cmd --- events.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'events.txt') 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 -- cgit v1.2.3