mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-15 21:15:47 +00:00
implement battleship
This commit is contained in:
@@ -52,7 +52,7 @@ export class DestroyerExecution implements Execution {
|
||||
this.target = null
|
||||
}
|
||||
if (this.target == null) {
|
||||
const ships = this.mg.units(UnitType.TransportShip, UnitType.Destroyer, UnitType.TradeShip)
|
||||
const ships = this.mg.units(UnitType.TransportShip, UnitType.Destroyer, UnitType.TradeShip, UnitType.Battleship)
|
||||
.filter(u => manhattanDist(u.tile().cell(), this.destroyer.tile().cell()) < 100)
|
||||
.filter(u => u.owner() != this.destroyer.owner())
|
||||
.filter(u => u != this.destroyer)
|
||||
|
||||
Reference in New Issue
Block a user