add number of troops to attack in control panel

This commit is contained in:
Evan
2025-02-20 06:18:54 -08:00
parent 1ebafd0b88
commit a8b6c88c2a
+4 -1
View File
@@ -250,7 +250,10 @@ export class ControlPanel extends LitElement implements Layer {
<div class="relative mb-0 lg:mb-4">
<label class="block text-white mb-1"
>Attack Ratio: ${(this.attackRatio * 100).toFixed(0)}%</label
>Attack Ratio: ${(this.attackRatio * 100).toFixed(0)}%
(${renderTroops(
this.game?.myPlayer()?.troops() * this.attackRatio,
)})</label
>
<div class="relative h-8">
<!-- Background track -->