From e0b289a03cda4515a213bd876545e0ccdea28677 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 21 May 2021 17:08:38 +0200 Subject: caesar: Show levy location in tooltip. --- ui.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui.js') 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; } -- cgit v1.2.3