From 1efca1b4e306eee5276ead51393ae6b2b310cbc6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 12 Feb 2025 16:45:54 +0100 Subject: fix game end trigger --- rules.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 7d5c498..fafb124 100644 --- a/rules.js +++ b/rules.js @@ -7,8 +7,6 @@ // see https://boardgamegeek.com/thread/423599/article/3731006 // TODO: sea move into attacked fortified port as defender responder? -- not besieged yet -exports.default_scenario = "+2/-2 Handicap" - exports.scenarios = [ "Standard", "+1/-1 Handicap", @@ -1177,6 +1175,7 @@ function count_victory_points(p) { function check_sudden_death() { if (count_victory_points(FRANKS) === 7) { game.state = 'game_over' + game.active = "None" game.result = FRANKS game.victory = "Franks controlled all seven victory cities." log("") @@ -1185,6 +1184,7 @@ function check_sudden_death() { } if (count_victory_points(SARACENS) === 7) { game.state = 'game_over' + game.active = "None" game.result = SARACENS game.victory = "Saracens controlled all seven victory cities." log("") @@ -3774,6 +3774,7 @@ function end_winter_replacements() { function goto_year_end() { if (game.year === 1192) { game.state = 'game_over' + game.active = "None" let f_vp = count_victory_points(FRANKS) let s_vp = count_victory_points(SARACENS) if (f_vp > s_vp) { -- cgit v1.2.3