From 72afc8e31c9dcef58b1308eddd4d1dde489e4670 Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Sun, 15 Dec 2024 21:38:52 +0100 Subject: victory and defeat on front and end game on defeat --- play.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'play.ts') diff --git a/play.ts b/play.ts index e192d6d..b97839b 100644 --- a/play.ts +++ b/play.ts @@ -381,7 +381,8 @@ 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.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]); -- cgit v1.2.3