diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-21 17:08:38 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:08:56 +0100 |
commit | e0b289a03cda4515a213bd876545e0ccdea28677 (patch) | |
tree | cdfc777e324348ab690dfbd781b728b495b722d5 /ui.js | |
parent | 76a282cc3ae7e3c15a6fbd84ec8650077e77aecb (diff) | |
download | julius-caesar-e0b289a03cda4515a213bd876545e0ccdea28677.tar.gz |
caesar: Show levy location in tooltip.
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |