summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-21 17:08:38 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commite0b289a03cda4515a213bd876545e0ccdea28677 (patch)
treecdfc777e324348ab690dfbd781b728b495b722d5 /ui.js
parent76a282cc3ae7e3c15a6fbd84ec8650077e77aecb (diff)
downloadjulius-caesar-e0b289a03cda4515a213bd876545e0ccdea28677.tar.gz
caesar: Show levy location in tooltip.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index ba06321..3bea29b 100644
--- a/ui.js
+++ b/ui.js
@@ -79,6 +79,9 @@ const STEPS = [ 0, "I", "II", "III", "IIII" ];
function block_description(b) {
let s = ui.map_steps[b] || ui.battle_steps[b];
let c = BLOCKS[b].initiative + BLOCKS[b].firepower;
+ let levy = BLOCKS[b].levy;
+ if (levy)
+ return BLOCKS[b].name + " (" + levy + ") " + STEPS[s] + "-" + c;
return BLOCKS[b].name + " " + STEPS[s] + "-" + c;
}