From 3d98a7e7f83d06b4a2c45cb76510064e93af413e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 8 Jan 2023 00:38:45 +0100 Subject: Total Strike rewrite. --- play.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 0f1720a..bdc9a8a 100644 --- a/play.js +++ b/play.js @@ -1,6 +1,9 @@ "use strict" -// TODO: Feed x2 markers on lord mats with >6 units +// Feed x2 on lords with >6 units +// End marker on Calendar +// Remove battle mat. +// Siege/Walls/Garrison display in battle array. // TODO: show sg and hg highlighting on battle mat (separate from view.group) @@ -1508,7 +1511,12 @@ function on_update() { if (view.battle && view.battle.array) { ui.battle_panel.classList.remove("hide") - ui.battle_header.textContent = "~ Battle at " + data.locales[view.battle.where].name + " ~" + if (view.battle.storm) + ui.battle_header.textContent = "Storm at " + data.locales[view.battle.where].name + else if (view.battle.sally) + ui.battle_header.textContent = "Sally at " + data.locales[view.battle.where].name + else + ui.battle_header.textContent = "Battle at " + data.locales[view.battle.where].name if (view.battle.attacker === player) { ui.battle_grid.className = "attacker" } else { -- cgit v1.2.3