From ee70909782faa66436f5784aab76c403170ed100 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 13 Nov 2024 16:50:41 +0100 Subject: fix prussia neutrality expiration --- play.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'play.js') diff --git a/play.js b/play.js index be27367..77f7078 100644 --- a/play.js +++ b/play.js @@ -345,6 +345,10 @@ function is_two_player() { return view.flags & F_TWO_PLAYER } +function is_saxony_neutral() { + return view.saxony > 2 && view.saxony < 5 +} + function count_victory_markers_in_country(pow, country) { let n = 0 map_for_each(view.victory, (vspace, vpow) => { @@ -1435,6 +1439,8 @@ function on_update() { } if (pow === P_PRUSSIA && (view.flags & F_PRUSSIA_NEUTRAL)) banner += " \u2014 Neutral" + if (pow === P_SAXONY && is_saxony_neutral()) + banner += " \u2014 Neutral" if (pow === P_FRANCE && (view.flags & F_WAR_OF_JENKINS_EAR)) banner += " \u2014 receives 1 TC less" -- cgit v1.2.3