summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-03 23:39:20 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit3704a8f3c2184e5372375c2c852996f68d9fb421 (patch)
treeb5f934399a401772a459ee82e79f445f076f565b /rules.js
parentb07678cca812800b034fd31a3191edc3d5abeedc (diff)
downloadnevsky-3704a8f3c2184e5372375c2c852996f68d9fb421.tar.gz
New Watland scenario
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js44
1 files changed, 40 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 67c2817..0523350 100644
--- a/rules.js
+++ b/rules.js
@@ -61,6 +61,7 @@ exports.roles = [ P1, P2 ]
exports.scenarios = [
"Pleskau",
+ "Watland (1st ed)",
"Watland",
"Peipus",
"Return of the Prince",
@@ -72,6 +73,7 @@ exports.scenarios = [
const scenario_last_turn = {
"Pleskau": 2,
+ "Watland (1st ed)": 8,
"Watland": 8,
"Peipus": 16,
"Return of the Prince": 16,
@@ -1706,8 +1708,11 @@ exports.setup = function (seed, scenario, options) {
case "Pleskau":
setup_pleskau()
break
+ case "Watland (1st ed)":
+ setup_watland_1st_ed()
+ break
case "Watland":
- setup_watland()
+ setup_watland_2nd_ed()
break
case "Peipus":
setup_peipus()
@@ -1747,7 +1752,7 @@ function setup_pleskau() {
setup_lord_on_calendar(LORD_DOMASH, 1)
}
-function setup_watland() {
+function setup_watland_1st_ed() {
game.turn = 4 << 1
game.pieces.veche_vp = 1
@@ -1772,6 +1777,31 @@ function setup_watland() {
setup_lord_on_calendar(LORD_HERMANN, 8)
}
+function setup_watland_2nd_ed() {
+ game.turn = 4 << 1
+
+ game.pieces.veche_vp = 1
+ game.pieces.veche_coin = 1
+
+ set_add(game.pieces.conquered, LOC_IZBORSK)
+ set_add(game.pieces.conquered, LOC_PSKOV)
+ set_add(game.pieces.ravaged, LOC_PSKOV)
+ set_add(game.pieces.ravaged, LOC_DUBROVNO)
+
+ muster_lord(LORD_ANDREAS, LOC_FELLIN, 7)
+ muster_lord(LORD_KNUD_ABEL, LOC_WESENBERG, 6)
+ muster_lord(LORD_DOMASH, LOC_NOVGOROD, 7)
+ muster_lord(LORD_VLADISLAV, LOC_LADOGA, 6)
+
+ setup_lord_on_calendar(LORD_RUDOLF, 4)
+ setup_lord_on_calendar(LORD_KARELIANS, 4)
+ setup_lord_on_calendar(LORD_YAROSLAV, 5)
+ setup_lord_on_calendar(LORD_ANDREY, 5)
+ setup_lord_on_calendar(LORD_HEINRICH, 7)
+ setup_lord_on_calendar(LORD_ALEKSANDR, 7)
+ setup_lord_on_calendar(LORD_HERMANN, 8)
+}
+
function setup_peipus() {
game.turn = 13 << 1
@@ -3880,10 +3910,16 @@ states.novgorod_veche = {
},
delay() {
push_undo()
- log("Added 1VP to Veche.")
game.state = "novgorod_veche_done"
- view.actions.veche_vp += 1
+ if (game.scenario === "Watland") {
+ log("Decline of Andrey: Added 2VP to Veche.")
+ view.actions.veche_vp += 2
+ } else {
+ log("Added 1VP to Veche.")
+ view.actions.veche_vp += 1
+ }
+
if (is_lord_ready(LORD_ALEKSANDR)) {
log(`Delayed L${LORD_ALEKSANDR}.`)
shift_lord_cylinder(LORD_ALEKSANDR, 1)