diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-08 00:38:45 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 3d98a7e7f83d06b4a2c45cb76510064e93af413e (patch) | |
tree | f791838a1bb45a58735e98f1de94b87dcbf926fa /play.js | |
parent | 828518a70b392b7e1c60fb4e50af3553bd3bd155 (diff) | |
download | nevsky-3d98a7e7f83d06b4a2c45cb76510064e93af413e.tar.gz |
Total Strike rewrite.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 { |