diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-10-01 00:45:57 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:42:59 +0100 |
commit | 762674d1318eedd56c4e99630e3c659b140e4d3a (patch) | |
tree | 10fe75e16b85994123685181168690189c5b94aa /rules.js | |
parent | 54a85b59c253cd74ed9ace82c2f344b47473f31c (diff) | |
download | 300-earth-and-water-762674d1318eedd56c4e99630e3c659b140e4d3a.tar.gz |
300: Set result for instant victories.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |