Missionsblatt: unbekannte Nest-Stufe statt „undefined“

This commit is contained in:
db9979 committed 2026-11-27 11:08:21 +01:00
1 parent 9427ace916
commit bf54e55edf
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ export function targetName(map: MapData | undefined, col: number, row: number):
// Kein doppeltes „Hafen Hafen …“, wenn der Name schon so beginnt.
if (b) return /^hafen\b/i.test(b.name) ? b.name : `Hafen ${b.name}`;
const n = map?.nests.find((x) => x.col === col && x.row === row);
if (n) return `Nest Stufe ${n.level}`;
if (n) return n.level == null ? "Piratennest (Stufe unbekannt)" : `Nest Stufe ${n.level}`; // Lagebild: Stufe nur mit Sicht
return `Feld ${col}/${row}`;
}