diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-03 23:39:20 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 3704a8f3c2184e5372375c2c852996f68d9fb421 (patch) | |
tree | b5f934399a401772a459ee82e79f445f076f565b | |
parent | b07678cca812800b034fd31a3191edc3d5abeedc (diff) | |
download | nevsky-3704a8f3c2184e5372375c2c852996f68d9fb421.tar.gz |
New Watland scenario
-rw-r--r-- | play.html | 1 | ||||
-rw-r--r-- | rules.js | 44 |
2 files changed, 41 insertions, 4 deletions
@@ -1231,6 +1231,7 @@ body.shift .mustered_vassals { <div class="menu_item" onclick="send_restore()">🐞 Restore</div> <div class="menu_item" onclick="send_restart('Pleskau (Quickstart)')">⚠ Pleskau (Quickstart)</div> <div class="menu_item" onclick="send_restart('Pleskau')">⚠ Pleskau</div> + <div class="menu_item" onclick="send_restart('Watland (1st ed)')">⚠ Watland (1st ed)</div> <div class="menu_item" onclick="send_restart('Watland')">⚠ Watland</div> <div class="menu_item" onclick="send_restart('Peipus')">⚠ Peipus</div> <div class="menu_item" onclick="send_restart('Return of the Prince')">⚠ Return of the Prince</div> @@ -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) |