Skip to content

Commit

Permalink
fix(map,data): fix wormhole icons and paths for a certain Astral Plan…
Browse files Browse the repository at this point in the history
…es system
  • Loading branch information
MichaelMakesGames committed May 6, 2024
1 parent 918cb83 commit a2e69e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/lib/map/data/processBypassLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function processBypassLinks(

const wormholeBypass = system.bypasses
.map((bypassId) => gameState.bypasses[bypassId])
.find((b) => b?.type === 'wormhole');
.find((b) => b?.type === 'wormhole' || b?.type === 'strange_wormhole');
const wormholeIsKnown = wormholeBypass != null && knownWormholes.has(wormholeBypass.id);
const wormholeLinksTo = Object.values(gameState.galactic_object).find((go) =>
go.bypasses.includes(wormholeBypass?.linked_to as number),
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/lib/map/data/processSystems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function processSystems(
const bypassTypes = new Set(
system.bypasses.map((bypassId) => gameState.bypasses[bypassId]?.type).filter(isDefined),
);
const hasWormhole = bypassTypes.has('wormhole');
const hasWormhole = bypassTypes.has('wormhole') || bypassTypes.has('strange_wormhole');
const hasGateway = bypassTypes.has('gateway');
const hasLGate = bypassTypes.has('lgate');
const hasShroudTunnel = bypassTypes.has('shroud_tunnel');
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/lib/map/data/processTerraIncognita.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function processTerraIncognita(
);
const wormholeIds = new Set(
Object.values(gameState.bypasses)
.filter((bypass) => bypass.type === 'wormhole')
.filter((bypass) => bypass.type === 'wormhole' || bypass.type === 'strange_wormhole')
.map((bypass) => bypass.id),
);
const knownWormholes = terraIncognitaPerspectiveCountry
Expand Down

0 comments on commit a2e69e6

Please sign in to comment.