summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-03 23:21:04 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commitb07678cca812800b034fd31a3191edc3d5abeedc (patch)
tree4fd0075e5be6d6d856f5e5f24e46c4114ee37eaa
parentab6461f8ec8036cbdfa4f3adac003cfc71f416ef (diff)
downloadnevsky-b07678cca812800b034fd31a3191edc3d5abeedc.tar.gz
2nd edition changes.
-rw-r--r--rules.js20
1 files changed, 15 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index ec84e99..67c2817 100644
--- a/rules.js
+++ b/rules.js
@@ -81,6 +81,10 @@ const scenario_last_turn = {
"Test": 2,
}
+function should_remove_no_event_card() {
+ return game.scenario !== "Crusade on Novgorod"
+}
+
// unit types
const KNIGHTS = 0
const SERGEANTS = 1
@@ -1872,7 +1876,7 @@ function setup_crusade_on_novgorod() {
muster_lord(LORD_GAVRILO, LOC_PSKOV, 4)
muster_lord(LORD_VLADISLAV, LOC_NEVA, 3)
- setup_lord_on_calendar(LORD_ANDREAS, 1)
+ setup_lord_on_calendar(LORD_ANDREAS, 3)
setup_lord_on_calendar(LORD_HEINRICH, 1)
setup_lord_on_calendar(LORD_RUDOLF, 1)
setup_lord_on_calendar(LORD_DOMASH, 1)
@@ -3100,8 +3104,14 @@ states.levy_arts_of_war_first = {
discard() {
push_undo()
let c = game.what.shift()
- discard_card(c)
- logi(`C${c} - discarded`)
+
+ if (is_no_event_card(c) && should_remove_no_event_card()) {
+ logi(`C${c} - removed`)
+ } else {
+ discard_card(c)
+ logi(`C${c} - discarded`)
+ }
+
resume_levy_arts_of_war_first()
},
}
@@ -5995,9 +6005,9 @@ function start_storm() {
else if (is_fort(here))
init_garrison(0, 1)
else if (is_bishopric(here))
- init_garrison(1, 3)
- else if (is_castle(here))
init_garrison(1, 2)
+ else if (is_castle(here))
+ init_garrison(1, 1)
// All lords must storm
for (let lord = first_lord; lord <= last_lord; ++lord) {