From bd8f72421e10e57e3ff9b548188ceb4651a477f0 Mon Sep 17 00:00:00 2001 From: ilan schemoul Date: Thu, 6 Mar 2025 01:21:53 +0100 Subject: [PATCH] default 95% soldiers --- src/client/graphics/layers/ControlPanel.ts | 4 ++-- src/core/game/PlayerImpl.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/graphics/layers/ControlPanel.ts b/src/client/graphics/layers/ControlPanel.ts index 1286c97d2..0ceeacd60 100644 --- a/src/client/graphics/layers/ControlPanel.ts +++ b/src/client/graphics/layers/ControlPanel.ts @@ -21,10 +21,10 @@ export class ControlPanel extends LitElement implements Layer { private attackRatio: number = 0.2; @state() - private targetTroopRatio = 1; + private targetTroopRatio = 0.9; @state() - private currentTroopRatio = 1; + private currentTroopRatio = 0.9; @state() private _population: number; diff --git a/src/core/game/PlayerImpl.ts b/src/core/game/PlayerImpl.ts index 9e3e919fc..f988bee40 100644 --- a/src/core/game/PlayerImpl.ts +++ b/src/core/game/PlayerImpl.ts @@ -65,7 +65,7 @@ export class PlayerImpl implements Player { private _workers: bigint; // 0 to 100 - private _targetTroopRatio: bigint = 100n; + private _targetTroopRatio: bigint; isTraitor_ = false; @@ -101,7 +101,7 @@ export class PlayerImpl implements Player { ) { this._flag = playerInfo.flag; this._name = playerInfo.name; - this._targetTroopRatio = 100n; + this._targetTroopRatio = 95n; this._troops = toInt(startTroops); this._workers = 0n; this._gold = 0n;