fixed bug where each intent was duplicated

destroyers find and capture trade ships
ports generate more trade ships
This commit is contained in:
Evan
2024-11-22 20:28:58 -08:00
parent cf39fe38cc
commit a2a6654bf5
9 changed files with 104 additions and 26 deletions
@@ -162,6 +162,7 @@ export class BuildMenu extends LitElement {
break
case UnitType.HydrogenBomb:
this.eventBus.emit(new BuildUnitIntentEvent(UnitType.HydrogenBomb, this.clickedCell))
break
case UnitType.Destroyer:
this.eventBus.emit(new BuildUnitIntentEvent(UnitType.Destroyer, this.clickedCell))
break
@@ -170,6 +171,7 @@ export class BuildMenu extends LitElement {
break
case UnitType.MissileSilo:
this.eventBus.emit(new BuildUnitIntentEvent(UnitType.MissileSilo, this.clickedCell))
break
}
this.hideMenu()
};