diff --git a/src/client/graphics/layers/PlayerInfoOverlay.ts b/src/client/graphics/layers/PlayerInfoOverlay.ts index 56cfb3988..e28aa9ff8 100644 --- a/src/client/graphics/layers/PlayerInfoOverlay.ts +++ b/src/client/graphics/layers/PlayerInfoOverlay.ts @@ -259,6 +259,7 @@ export class PlayerInfoOverlay extends LitElement implements Layer { .outgoingAttacks() .map((a) => a.troops) .reduce((a, b) => a + b, 0); + const totalTroops = player.troops(); if (player.type() === PlayerType.Nation && myPlayer !== null && !isAllied) { const relation = @@ -378,6 +379,7 @@ export class PlayerInfoOverlay extends LitElement implements Layer { ` : ""} + ${this.renderTroopBar(totalTroops, attackingTroops, maxTroops)}
+
+ ${greenPercent > 0 + ? html`
` + : ""} + ${orangePercent > 0 + ? html`
` + : ""} +
+
+ `; + } + private renderUnitInfo(unit: UnitView) { const isAlly = (unit.owner() === this.game.myPlayer() ||