adding destroyer

This commit is contained in:
evanpelle
2024-11-10 18:28:21 -08:00
committed by Evan
parent 6a1a09c335
commit c7951d77c0
16 changed files with 249 additions and 42 deletions
+2 -2
View File
@@ -73,8 +73,8 @@ export class PlayerImpl implements MutablePlayer {
}
addBoat(troops: number, tile: Tile): UnitImpl {
const b = new UnitImpl(UnitType.TransportShip, this.gs, tile, troops, this);
addUnit(type: UnitType, troops: number, tile: Tile): UnitImpl {
const b = new UnitImpl(type, this.gs, tile, troops, this);
this._units.push(b);
this.gs.fireUnitUpdateEvent(b, b.tile());
return b;