summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-28 14:29:23 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commita808049398cdb100d8f557cff0663aeb10c78d78 (patch)
tree86ba6493ed979a3190d6c859ca92683038b428fb /rules.js
parentc7f41534edfdd9c66c6f63441c7ecd7fdf46cf29 (diff)
downloadnevsky-a808049398cdb100d8f557cff0663aeb10c78d78.tar.gz
Sort scenarios in same order as rulebook.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js29
1 files changed, 2 insertions, 27 deletions
diff --git a/rules.js b/rules.js
index 4499e1f..4b08c55 100644
--- a/rules.js
+++ b/rules.js
@@ -52,14 +52,13 @@ let states = {}
exports.roles = [ P1, P2 ]
exports.scenarios = [
+ "Pleskau (Quickstart)",
"Pleskau",
"Watland",
- "Peipus",
"Return of the Prince",
"Return of the Prince (Nicolle)",
+ "Peipus",
"Crusade on Novgorod",
- "Pleskau (Quickstart)",
- "Test",
]
const scenario_last_turn = {
@@ -70,7 +69,6 @@ const scenario_last_turn = {
"Return of the Prince (Nicolle)": 16,
"Crusade on Novgorod": 16,
"Pleskau (Quickstart)": 2,
- "Test": 2,
}
function should_remove_no_event_card() {
@@ -1669,9 +1667,6 @@ exports.setup = function (seed, scenario, options) {
case "Pleskau (Quickstart)":
setup_pleskau_quickstart()
break
- case "Test":
- setup_test()
- break
}
return game
@@ -1885,26 +1880,6 @@ function setup_pleskau_quickstart() {
// goto_command_activation()
}
-function setup_test() {
- setup_pleskau_quickstart()
- set_add(game.capabilities, AOW_TEUTONIC_RANSOM)
- set_add(game.capabilities, AOW_RUSSIAN_RANSOM)
-
- set_lord_locale(LORD_KNUD_ABEL, LOC_ODENPAH)
- set_lord_locale(LORD_HERMANN, LOC_ODENPAH)
- set_lord_locale(LORD_RUDOLF, LOC_ODENPAH)
-
- set_lord_locale(LORD_DOMASH, LOC_PSKOV)
- set_lord_locale(LORD_VLADISLAV, LOC_IZBORSK)
-
- for (let c = first_p1_card; c <= last_p1_card; ++c)
- if (data.cards[c].when === "hold")
- game.hand1.push(c)
- for (let c = first_p2_card; c <= last_p2_card; ++c)
- if (data.cards[c].when === "hold")
- game.hand2.push(c)
-}
-
states.setup_lords = {
inactive: "Set up Lords",
prompt() {