Lower pirate blockade borders to the sea surface

This commit is contained in:
coyotte508 2026-10-12 20:22:17 +02:00
commit e6a05bc15e
4 changed files with 8 additions and 5 deletions

View file

@ -237,3 +237,5 @@ Clicking a friendly fleet now immediately boards the selected land group across
# Viewer 0.1.76 / engine unchanged (0.4.68)
Sea spaces occupied by or adjacent to pirates now have persistent dashed red borders with a pale outline in both 3D and Strategy views. Hover and tile details explain that collection and Trade Routes are blocked. The guide follows live and replayed pirate positions, excludes land and unexplored spaces, and ignores escorted Pirate Allies controlled by Carthage. Thumbnail exports omit the overlay. All 16 locales include the explanation; the rules engine is unchanged. Verified with 721 tests, locale validation, type checks, and light/dark browser previews.
Viewer 0.1.77 lowers the pirate blockade border to the sea-tile surface, with minimal clearance to prevent flickering. Engine 0.4.68 is unchanged.

View file

@ -1,12 +1,12 @@
{
"name": "@boardgamers/clash-web-client",
"version": "0.1.76",
"version": "0.1.77",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@boardgamers/clash-web-client",
"version": "0.1.76",
"version": "0.1.77",
"dependencies": {
"@boardgamers/protocol": "0.9.0",
"lucide-svelte": "^0.577.0",

View file

@ -1,6 +1,6 @@
{
"name": "@boardgamers/clash-web-client",
"version": "0.1.76",
"version": "0.1.77",
"private": true,
"type": "module",
"scripts": {

View file

@ -13,9 +13,10 @@ export class PirateBlockadeOverlay {
this.dispose();
this.signature = signature;
if (!positions.length) return;
// Water tile tops are at y = 0.01. Keep only enough clearance to avoid z-fighting.
for (const [color, width, height] of [
['#ffebc8', 0.075, 0.39],
['#b3332b', 0.038, 0.405],
['#ffebc8', 0.075, 0.018],
['#b3332b', 0.038, 0.021],
] as const) {
const segments: THREE.BufferGeometry[] = [];
for (const position of positions) {