summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-02-12 16:45:54 +0100
committerTor Andersson <tor@ccxvii.net>2025-02-12 16:46:31 +0100
commit1efca1b4e306eee5276ead51393ae6b2b310cbc6 (patch)
tree748e5069d3acb057c4fdcab10376b10873a2aefa /rules.js
parentd227dfc557601164ac3bda4de22d90b3a841afaf (diff)
downloadcrusader-rex-1efca1b4e306eee5276ead51393ae6b2b310cbc6.tar.gz
fix game end triggerHEADmaster
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js5
1 files changed, 3 insertions, 2 deletions
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) {