summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-31 14:12:54 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commitaafa4fa2d156d69f588f1dba263dab97a013f6fb (patch)
tree85a9af53bbd2edb0d1ef47aa312d5effb8455d93 /rules.js
parentffc58ffde8743071418547285e6bc62608fcd849 (diff)
downloadnevsky-aafa4fa2d156d69f588f1dba263dab97a013f6fb.tar.gz
Transition from immediate event to arts of war state.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 6e9eea5..ababb11 100644
--- a/rules.js
+++ b/rules.js
@@ -4,6 +4,9 @@
// TODO: hit remainders
// TODO: choose crossbow/normal hit application order
+// TODO: precompute distance to supply lines for faster supply path rejection
+// Use BFS for winter/rasputitsa supply
+
// TODO: Lodya capability during supply!
// TODO: 2nd edition supply rule - no reuse of transports
@@ -2096,6 +2099,7 @@ function discard_global_capability(c) {
}
if (c === AOW_RUSSIAN_SMERDI) {
+ // TODO: remove serfs from lord mats?
game.pieces.smerdi = 0
}
@@ -2189,11 +2193,12 @@ function end_levy_arts_of_war_first() {
function goto_levy_arts_of_war() {
log_br()
log(game.active)
- game.state = "levy_arts_of_war"
game.what = draw_two_cards()
+ resume_levy_arts_of_war()
}
function resume_levy_arts_of_war() {
+ game.state = "levy_arts_of_war"
if (game.what.length === 0)
end_levy_arts_of_war()
}