mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 22:08:06 +00:00
add number of troops to attack in control panel
This commit is contained in:
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user