feat: 60% health for units when they spawn so 2 warships vs 1 always win

This commit is contained in:
ilan schemoul
2025-02-28 19:23:50 +01:00
parent 389e905813
commit 40b9613f67
+2 -2
View File
@@ -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;
}