From 5788a51fa03857dc87ac1a191871fcf64d0a61e5 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Sat, 3 Jun 2023 14:16:03 +0200 Subject: Removed some Nevsky reference to arts of war and muster function --- rules.js | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/rules.js b/rules.js index fff1632..4ad25b0 100644 --- a/rules.js +++ b/rules.js @@ -1520,6 +1520,8 @@ function setup_ItoIII() { } // setup may be used in some scenarios + + states.setup_lords = { inactive: "Set up Lords", prompt() { @@ -1538,7 +1540,6 @@ states.setup_lords = { view.actions.end_setup = 1 } }, - lord(lord) { push_undo() @@ -1548,11 +1549,13 @@ states.setup_lords = { game.who = lord game.count = data.lords[lord].assets.transport }, + end_setup() { + clear_undo() + end_setup_lords() + }, +} -} - - -function end_setup() { +function end_setup_lords() { clear_lords_moved() set_active_enemy() if (game.active === P1) { @@ -1920,10 +1923,10 @@ function end_levy_arts_of_war_first() { // === LEVY: ARTS OF WAR === function goto_levy_arts_of_war() { - if (game.active === TEUTONS) - log_h2("Teutonic Arts of War") + if (game.active === YORK) + log_h2("York Arts of War") else - log_h2("Russian Arts of War") + log_h2("Lancaster Arts of War") game.what = draw_two_cards() resume_levy_arts_of_war() } @@ -1990,10 +1993,10 @@ function end_levy_arts_of_war() { // === LEVY: MUSTER === function goto_levy_muster() { - if (game.active === TEUTONS) - log_h2("Teutonic Muster") + if (game.active === YORK) + log_h2("York Muster") else - log_h2("Russian Muster") + log_h2("Lancaster Muster") game.state = "levy_muster" } @@ -2330,7 +2333,7 @@ states.muster_capability_discard = { // === LEVY: CALL TO ARMS === function goto_levy_call_to_arms() { - if (game.active === TEUTONS) + if (game.active === YORK) goto_teutonic_call_to_arms() else goto_russian_call_to_arms() @@ -7353,7 +7356,7 @@ function log_h1(msg) { function log_h2(msg) { log_br() - if (game.active === TEUTONS) + if (game.active === YORK) log(".h2t " + msg) else log(".h2r " + msg) @@ -7362,7 +7365,7 @@ function log_h2(msg) { function log_h3(msg) { log_br() - if (game.active === TEUTONS) + if (game.active === YORK) log(".h3t " + msg) else log(".h3r " + msg) -- cgit v1.2.3