npcs build ports

This commit is contained in:
evanpelle
2024-11-21 19:53:02 -08:00
committed by Evan
parent c2798d46d9
commit bc3cf09960
5 changed files with 69 additions and 44 deletions
+1
View File
@@ -328,6 +328,7 @@ export class PlayerImpl implements MutablePlayer {
(prev as PlayerImpl)._units = (prev as PlayerImpl)._units.filter(u => u != unit);
(unit as UnitImpl)._owner = this
this._units.push(unit as UnitImpl)
this.gs.fireUnitUpdateEvent(unit, unit.tile())
}
buildUnit(type: UnitType, troops: number, spawnTile: Tile): UnitImpl {