summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-10-01 14:58:00 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:42:59 +0100
commitcfdba0c522f460df3d97580ec2900fef80af9f77 (patch)
tree1942e391728f4d05c0a997ff23dbcdf141d65637
parent275f47e4eb9d3c23314eafa76bc87a05329be55a (diff)
download300-earth-and-water-cfdba0c522f460df3d97580ec2900fef80af9f77.tar.gz
300: Fix scoring and resetting of Acropolis on Fire.
-rw-r--r--rules.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 9c87b95..14f3e63 100644
--- a/rules.js
+++ b/rules.js
@@ -488,6 +488,8 @@ function gen_greek_land_movement(view) {
// DEATH OF A KING
function goto_sudden_death_of_darius(skip_scoring) {
+ if (skip_scoring)
+ game.trigger.acropolis_on_fire = 0;
game.skip_scoring = skip_scoring;
game.trigger.darius = 1;
log("Sudden Death of Darius!");
@@ -529,6 +531,8 @@ states.sudden_death_of_darius = {
}
function goto_assassination_of_xerxes(skip_scoring) {
+ if (skip_scoring)
+ game.trigger.acropolis_on_fire = 0;
game.skip_scoring = skip_scoring;
game.trigger.xerxes = 1;
log("Assassination of Xerxes!");
@@ -2938,7 +2942,7 @@ function play_artemisia() {
game.trigger.artemisia = 1;
remove_persian_fleet(game.where);
- if (game.attacker == PERSIA) {
+ if (game.attacker === PERSIA) {
if (count_persian_fleets(game.where) < game.transport) {
log("Persia loses one fleet and one army.");
move_persian_army(game.where, RESERVE);
@@ -3209,6 +3213,8 @@ function goto_scoring_phase() {
let greek_vp = 0;
let persian_vp = 0;
for (let city of CITIES) {
+ if (city === ATHENAI && game.trigger.acropolis_on_fire)
+ continue;
if (is_greek_control(city))
greek_vp += SCORE[city];
if (is_persian_control(city))