diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-13 16:50:41 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-13 16:50:41 +0100 |
commit | ee70909782faa66436f5784aab76c403170ed100 (patch) | |
tree | 577d05e92dff88ffd770667d26fbe3daae86a4ca /play.js | |
parent | 104d2281d3bea55f2a835f7f154f3a759421c75a (diff) | |
download | maria-ee70909782faa66436f5784aab76c403170ed100.tar.gz |
fix prussia neutrality expiration
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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" |