From 40b9613f677f4adc40dd5d0767c0ccdfe9070d4c Mon Sep 17 00:00:00 2001 From: ilan schemoul Date: Fri, 28 Feb 2025 19:23:50 +0100 Subject: [PATCH] feat: 60% health for units when they spawn so 2 warships vs 1 always win --- src/core/game/UnitImpl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/game/UnitImpl.ts b/src/core/game/UnitImpl.ts index 7c3de09a0..a03524f9e 100644 --- a/src/core/game/UnitImpl.ts +++ b/src/core/game/UnitImpl.ts @@ -22,8 +22,8 @@ export class UnitImpl implements Unit { private _id: number, public _owner: PlayerImpl, ) { - // default to half health (or 1 is no health specified) - this._health = (this.mg.unitInfo(_type).maxHealth ?? 2) / 2; + // default to 60% health (or 1.2 is no health specified) + this._health = (this.mg.unitInfo(_type).maxHealth ?? 2) * 0.6; this._lastTile = _tile; }