summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--events.txt8
-rw-r--r--rules.js10
2 files changed, 15 insertions, 3 deletions
diff --git a/events.txt b/events.txt
index d8c5ac1..e77d2c7 100644
--- a/events.txt
+++ b/events.txt
@@ -1,7 +1,13 @@
# Events for Vijayanagara
EVENT 1
- log "NOT IMPLEMENTED"
+ current REBEL_FACTIONS
+ prompt "Move all Governors to Provinces adjacent to Delhi."
+ piece all (is_governor(p) && !set_has(SPACES[S_DELHI].adjacent, piece_space(p)))
+ space 1 (set_has(SPACES[S_DELHI].adjacent, s))
+ move
+ endspace
+ endpiece
SHADED 1
log "NOT IMPLEMENTED"
diff --git a/rules.js b/rules.js
index eaa7c35..ce16773 100644
--- a/rules.js
+++ b/rules.js
@@ -258,7 +258,7 @@ exports.setup = function (seed, scenario, _options) {
}
function setup_deck() {
- game.deck = [ 22, 21, 2, 25, 29, 15, 17, 16, 18, 5, 3, 36, 10, 37, 11, 2, 10, 1, 12, 13, 14 ]
+ game.deck = [ 22, 21, 2, 1, 29, 15, 17, 16, 18, 5, 3, 36, 10, 37, 11, 2, 10, 1, 12, 13, 14 ]
}
function setup_standard() {
@@ -4198,7 +4198,13 @@ const CODE = []
// EVENT 1
CODE[1 * 2 + 0] = [
- [ vm_log, "NOT IMPLEMENTED" ],
+ [ vm_current, REBEL_FACTIONS ],
+ [ vm_prompt, "Move all Governors to Provinces adjacent to Delhi." ],
+ [ vm_piece, false, 999, 999, (p,s)=>(is_governor(p) && !set_has(SPACES[S_DELHI].adjacent, piece_space(p))) ],
+ [ vm_space, true, 1, 1, (s)=>(set_has(SPACES[S_DELHI].adjacent, s)) ],
+ [ vm_move ],
+ [ vm_endspace ],
+ [ vm_endpiece ],
[ vm_return ],
]