mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:20:45 +00:00
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user