mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 10:21:16 +00:00
must right click near coast for boat option
This commit is contained in:
@@ -305,6 +305,17 @@ export class RadialMenu implements Layer {
|
||||
return
|
||||
}
|
||||
|
||||
let nearOcean = false
|
||||
for (const t of bfs(tile, and(t => t.owner() == tile.owner() && t.isLand(), dist(tile, 25)))) {
|
||||
if (t.isOceanShore()) {
|
||||
nearOcean = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if (!nearOcean) {
|
||||
return
|
||||
}
|
||||
|
||||
if (myPlayerBordersOcean && otherPlayerBordersOcean) {
|
||||
const [src, dst] = sourceDstOceanShore(this.game, myPlayer, other, this.clickedCell)
|
||||
if (src != null && dst != null) {
|
||||
|
||||
Reference in New Issue
Block a user