diff options
author | Joël Simoneau <simoneaujoel@gmail.com> | 2025-03-13 22:03:33 -0400 |
---|---|---|
committer | Joël Simoneau <simoneaujoel@gmail.com> | 2025-03-13 22:03:33 -0400 |
commit | 4dfb25fd38166e1cdd4998fb46d82ee7283e08f8 (patch) | |
tree | 4f0a6611108ad542762feabf8c36e23b1a367ba8 | |
parent | 37016f96b7189517f72bf6513ce51e7c3f909953 (diff) | |
download | vijayanagara-4dfb25fd38166e1cdd4998fb46d82ee7283e08f8.tar.gz |
fix: prompt event 2
-rw-r--r-- | events.txt | 1 | ||||
-rw-r--r-- | rules.js | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -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 @@ -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 ], |