fix build errors from cherry-pick

This commit is contained in:
Evan
2025-03-02 09:51:25 -08:00
parent d8841924e2
commit 5e09c0db47
2 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export class UnitImpl implements Unit {
public _owner: PlayerImpl,
) {
// default to 60% health (or 1.2 is no health specified)
this._health = (this.mg.unitInfo(_type).maxHealth ?? 2) * 0.6;
this._health = toInt((this.mg.unitInfo(_type).maxHealth ?? 2) * 0.6);
this._lastTile = _tile;
}