summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@franss-mbp.home>2024-12-15 21:38:52 +0100
committerFrans Bongers <fransbongers@franss-mbp.home>2024-12-15 21:38:52 +0100
commit72afc8e31c9dcef58b1308eddd4d1dde489e4670 (patch)
tree1e5ea6603d3144f9b45214c3d1466c4cd693dea9 /play.js
parent47b19b5e83850b5fac6e508468b227476d486025 (diff)
downloadland-and-freedom-72afc8e31c9dcef58b1308eddd4d1dde489e4670.tar.gz
victory and defeat on front and end game on defeat
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index 38d98dd..ffa817a 100644
--- a/play.js
+++ b/play.js
@@ -289,7 +289,7 @@ function on_update() {
}
for (let front_id of Object.keys(view.fronts)) {
const front_data = view.fronts[front_id];
- ui.fronts[front_id].value.replaceChildren(front_data.value);
+ ui.fronts[front_id].value.replaceChildren(front_data.status !== null ? front_data.status : front_data.value);
ui.fronts[front_id].contributions.replaceChildren();
for (let faction_id of front_data.contributions) {
ui.fronts[front_id].contributions.appendChild(ui.tokens_on_front[front_id][faction_id]);