Merge pull request #91 from ilan-schemoul/health-60

feat: 60% health for units when they spawn so 2 warships vs 1 always win
This commit is contained in:
evanpelle
2025-02-28 13:26:08 -08:00
committed by GitHub
+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;
}