function resolveDestination
devtools/src/travel.ts:720
resolveDestination(text: string, galaxy: GalaxyId, currentSystem: SystemId | null) → TravelDestination
Turn anything worth typing into a destination.
Accepts the canonical form (g:milky-way/s:SOL/b:2), the galaxy-less form a
listing shows (s:SOL/b:2), a bare catalog designation (HIP71683) and a
body relative to where the player already is (b:2.0). parseAddress itself
deliberately refuses all but the first — it is the strict boundary for
generation and save files, and loosening it there would mean an address whose
meaning depends on who is asking. That ambiguity is fine here, at a debug
prompt, and nowhere else, which is why the leniency lives in this function.
ReturnsTravelDestination