summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-10-01 00:45:57 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:42:59 +0100
commit762674d1318eedd56c4e99630e3c659b140e4d3a (patch)
tree10fe75e16b85994123685181168690189c5b94aa /rules.js
parent54a85b59c253cd74ed9ace82c2f344b47473f31c (diff)
download300-earth-and-water-762674d1318eedd56c4e99630e3c659b140e4d3a.tar.gz
300: Set result for instant victories.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index d36a177..db49758 100644
--- a/rules.js
+++ b/rules.js
@@ -3091,11 +3091,13 @@ function goto_scoring_phase() {
if (is_persian_control(ATHENAI) && is_persian_control(SPARTA)) {
game.victory = "Persia wins by controlling Athenai and Sparta!";
game.state = 'game_over';
+ game.result = PERSIA;
return;
}
if (is_greek_control(ABYDOS) && is_greek_control(EPHESOS)) {
game.victory = "Greece wins by controlling Abydos and Ephesos!";
game.state = 'game_over';
+ game.result = GREECE;
return;
}
let greek_vp = 0;