summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-13 16:50:41 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-13 16:50:41 +0100
commitee70909782faa66436f5784aab76c403170ed100 (patch)
tree577d05e92dff88ffd770667d26fbe3daae86a4ca /play.js
parent104d2281d3bea55f2a835f7f154f3a759421c75a (diff)
downloadmaria-ee70909782faa66436f5784aab76c403170ed100.tar.gz
fix prussia neutrality expiration
Diffstat (limited to 'play.js')
-rw-r--r--play.js6
1 files changed, 6 insertions, 0 deletions
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"