mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 00:45:20 +00:00
feat: 60% health for units when they spawn so 2 warships vs 1 always win
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user