From 4dfb25fd38166e1cdd4998fb46d82ee7283e08f8 Mon Sep 17 00:00:00 2001 From: Joël Simoneau Date: Thu, 13 Mar 2025 22:03:33 -0400 Subject: fix: prompt event 2 --- events.txt | 1 + rules.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/events.txt b/events.txt index 174bdfd..b7623cd 100644 --- a/events.txt +++ b/events.txt @@ -28,6 +28,7 @@ EVENT 2 stay_eligible prompt "Remove up to 2 Delhi Sultanate Units in both Mountain Passes and Punjab." space 2 ((s === S_MOUNTAIN_PASSES || s === S_PUNJAB) && has_ds_unit(s)) + prompt "Remove up to 2 Delhi Sultanate Units." piece 2 is_ds_unit(p) && is_piece_in_event_space(p) remove endpiece diff --git a/rules.js b/rules.js index 26467df..540de57 100644 --- a/rules.js +++ b/rules.js @@ -5200,6 +5200,7 @@ CODE[2 * 2 + 0] = [ [ vm_stay_eligible ], [ vm_prompt, "Remove up to 2 Delhi Sultanate Units in both Mountain Passes and Punjab." ], [ vm_space, true, 2, 2, (s)=>((s === S_MOUNTAIN_PASSES || s === S_PUNJAB) && has_ds_unit(s)) ], + [ vm_prompt, "Remove up to 2 Delhi Sultanate Units." ], [ vm_piece, false, 2, 2, (p,s)=>is_ds_unit(p) && is_piece_in_event_space(p) ], [ vm_remove ], [ vm_endpiece ], @@ -5282,8 +5283,8 @@ CODE[4 * 2 + 1] = [ CODE[5 * 2 + 0] = [ [ vm_stay_eligible ], [ vm_current, REBEL_FACTIONS ], - [ vm_prompt, ()=>`Replace up to 3 Delhi Sultanate Units with Rebelling ${PIECE_FACTION_TYPE_NAME[game.current][ELITE]}.` ], - [ vm_piece, true, 0, 3, (p,s)=>(is_adjacent_to_city(C_CHITTOR, piece_space(p)) && can_place_piece(piece_space(p), game.current, ELITE) && is_ds_unit(p)) ], + [ vm_prompt, ()=>`Replace up to 2 Delhi Sultanate Units with Rebelling ${PIECE_FACTION_TYPE_NAME[game.current][ELITE]}.` ], + [ vm_piece, true, 0, 2, (p,s)=>(is_adjacent_to_city(C_CHITTOR, piece_space(p)) && can_place_piece(piece_space(p), game.current, ELITE) && is_ds_unit(p)) ], [ vm_set_piece_space ], [ vm_remove ], [ vm_auto_place, false, 0, true, ()=>(game.current), ELITE ], -- cgit v1.2.3