From bcf6a9df595a04f96fce568f612faf9f9d1a7e89 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 3 Jun 2024 11:16:23 +0200 Subject: clean up log when powers quit the game --- rules.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index d14ba0a..e0dc419 100644 --- a/rules.js +++ b/rules.js @@ -832,13 +832,13 @@ function retire_general(p) { } } if (n > 1) - log("P" + p + " retired with " + n + " troops.") + log("P" + p + " removed from S" + s + " with " + n + " troops.") else if (n === 1) - log("P" + p + " retired with 1 troop.") + log("P" + p + " removed from S" + s + " with 1 troop.") else - log("P" + p + " retired.") + log("P" + p + " removed.") } else { - log("P" + p + " retired.") + log("P" + p + " removed.") } } @@ -3131,6 +3131,7 @@ function goto_clock_of_fate() { log("The Imperial Army switches players and eased victory conditions come into effect for Austria and the Imperial Army.") else log("For Sweden eased victory conditions come into effect.") + log_br() break case FC_SWEDEN: log("Sweden quits the game!") @@ -3142,6 +3143,7 @@ function goto_clock_of_fate() { log_br() log("The Imperial Army switches players and eased victory conditions come into effect for Austria and the Imperial Army.") } + log_br() break case FC_AMERICA: case FC_INDIA: @@ -3153,6 +3155,7 @@ function goto_clock_of_fate() { log("Cumberland is removed permanently from the game. Hanover receives only 1 TC from now on.") log_br() log("The Imperial Army switches players and eased victory conditions come into effect for Austria and the Imperial Army.") + log_br() } else { if (game.scenario === 1) break -- cgit v1.2.3