summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-03-13 22:03:33 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-03-13 22:03:33 -0400
commit4dfb25fd38166e1cdd4998fb46d82ee7283e08f8 (patch)
tree4f0a6611108ad542762feabf8c36e23b1a367ba8
parent37016f96b7189517f72bf6513ce51e7c3f909953 (diff)
downloadvijayanagara-4dfb25fd38166e1cdd4998fb46d82ee7283e08f8.tar.gz
fix: prompt event 2
-rw-r--r--events.txt1
-rw-r--r--rules.js5
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 ],