Skip to content

Commit a2e69e6

Browse files
fix(map,data): fix wormhole icons and paths for a certain Astral Planes system
1 parent 918cb83 commit a2e69e6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/renderer/src/lib/map/data/processBypassLinks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function processBypassLinks(
2929

3030
const wormholeBypass = system.bypasses
3131
.map((bypassId) => gameState.bypasses[bypassId])
32-
.find((b) => b?.type === 'wormhole');
32+
.find((b) => b?.type === 'wormhole' || b?.type === 'strange_wormhole');
3333
const wormholeIsKnown = wormholeBypass != null && knownWormholes.has(wormholeBypass.id);
3434
const wormholeLinksTo = Object.values(gameState.galactic_object).find((go) =>
3535
go.bypasses.includes(wormholeBypass?.linked_to as number),

src/renderer/src/lib/map/data/processSystems.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function processSystems(
4141
const bypassTypes = new Set(
4242
system.bypasses.map((bypassId) => gameState.bypasses[bypassId]?.type).filter(isDefined),
4343
);
44-
const hasWormhole = bypassTypes.has('wormhole');
44+
const hasWormhole = bypassTypes.has('wormhole') || bypassTypes.has('strange_wormhole');
4545
const hasGateway = bypassTypes.has('gateway');
4646
const hasLGate = bypassTypes.has('lgate');
4747
const hasShroudTunnel = bypassTypes.has('shroud_tunnel');

src/renderer/src/lib/map/data/processTerraIncognita.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function processTerraIncognita(
2323
);
2424
const wormholeIds = new Set(
2525
Object.values(gameState.bypasses)
26-
.filter((bypass) => bypass.type === 'wormhole')
26+
.filter((bypass) => bypass.type === 'wormhole' || bypass.type === 'strange_wormhole')
2727
.map((bypass) => bypass.id),
2828
);
2929
const knownWormholes = terraIncognitaPerspectiveCountry

0 commit comments

Comments
 (0)