summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-02-04 15:33:20 -0500
committerJoël Simoneau <simoneaujoel@gmail.com>2025-02-04 15:33:20 -0500
commit7ad6c3eec0a3dc96c0f001cb5ad0dbf2194b9abd (patch)
tree6d361a11039292dbef38e88252c45e6b30d0e61f
parentaba33782d90bffc6438d5069e495a428da1aaa57 (diff)
downloadvijayanagara-7ad6c3eec0a3dc96c0f001cb5ad0dbf2194b9abd.tar.gz
Event 20
-rw-r--r--events.txt21
-rw-r--r--rules.js23
2 files changed, 39 insertions, 5 deletions
diff --git a/events.txt b/events.txt
index 0584464..15ac6d8 100644
--- a/events.txt
+++ b/events.txt
@@ -313,10 +313,27 @@ SHADED 19
endspace
EVENT 20
- log "NOT IMPLEMENTED"
+ current REBEL_FACTIONS
+ add_influence (game.current)
+ prompt "In Orissa or an adjacent Province, you may Migrate, Rally and then Build."
+ space 1 (is_adjacent_to_city(C_WARANGAL, s) || s === S_BENGAL)
+ free_migrate
+ free_rally
+ free_build
+ endspace
SHADED 20
- log "NOT IMPLEMENTED"
+ current DS
+ prompt "In Orissa, remove an enemy Structure, add 1 Governor, 1 Qasbah, 2 Troops and a Tributary marker."
+ space 1 (s === S_ORISSA)
+ piece_opt 1 ((is_temple(p) || is_fort(p)) && is_piece_in_event_space(p))
+ remove
+ endpiece
+ place 1 DS ELITE
+ place 1 DS DISC
+ place 2 DS TROOPS
+ place_tributary
+ endspace
EVENT 21
log "NOT IMPLEMENTED"
diff --git a/rules.js b/rules.js
index c3a6c2f..1e81e63 100644
--- a/rules.js
+++ b/rules.js
@@ -258,7 +258,7 @@ exports.setup = function (seed, scenario, _options) {
}
function setup_deck() {
- game.deck = [ 22, 21, 35, 29, 15, 17, 16, 18, 5, 3, 36, 10, 37, 11, 2, 10, 1, 12, 13, 14 ]
+ game.deck = [ 22, 21, 20, 35, 29, 15, 17, 16, 18, 5, 3, 36, 10, 37, 11, 2, 10, 1, 12, 13, 14 ]
}
function setup_standard() {
@@ -4541,13 +4541,30 @@ CODE[19 * 2 + 1] = [
// EVENT 20
CODE[20 * 2 + 0] = [
- [ vm_log, "NOT IMPLEMENTED" ],
+ [ vm_current, REBEL_FACTIONS ],
+ [ vm_add_influence, ()=>(game.current) ],
+ [ vm_prompt, "In Orissa or an adjacent Province, you may Migrate, Rally and then Build." ],
+ [ vm_space, true, 1, 1, (s)=>(is_adjacent_to_city(C_WARANGAL, s) || s === S_BENGAL) ],
+ [ vm_free_migrate ],
+ [ vm_free_rally ],
+ [ vm_free_build ],
+ [ vm_endspace ],
[ vm_return ],
]
// SHADED 20
CODE[20 * 2 + 1] = [
- [ vm_log, "NOT IMPLEMENTED" ],
+ [ vm_current, DS ],
+ [ vm_prompt, "In Orissa, remove an enemy Structure, add 1 Governor, 1 Qasbah, 2 Troops and a Tributary marker." ],
+ [ vm_space, true, 1, 1, (s)=>(s === S_ORISSA) ],
+ [ vm_piece, false, 0, 1, (p,s)=>((is_temple(p) || is_fort(p)) && is_piece_in_event_space(p)) ],
+ [ vm_remove ],
+ [ vm_endpiece ],
+ [ vm_place, false, 0, 1, DS, ELITE ],
+ [ vm_place, false, 0, 1, DS, DISC ],
+ [ vm_place, false, 0, 2, DS, TROOPS ],
+ [ vm_place_tributary ],
+ [ vm_endspace ],
[ vm_return ],
]