Updated spawn template var name inline with existing vars

This commit is contained in:
Lee Solway committed 2026-08-03 12:49:50 +01:00
1 parent 574b64ca6b
commit f319ccc2eb
2 files changed
+3 -3

No files matched your search

@@ -40,7 +40,7 @@ const VARIABLES = [
{ id: '{temporary_name}', desc: 'Temporary name if set' },
{ id: '{description}', desc: 'Custom description' },
{ id: '{direction}', desc: 'Wormhole direction (e.g., In, Out)' },
{ id: '{spawn}', desc: 'Spawn type for outgoing wormholes (e.g., Static, Wandering)' },
{ id: '{spawn_type}', desc: 'Spawn type for outgoing wormholes (e.g., Static, Wandering)' },
];
interface CustomMappingInputProps {
@@ -382,8 +382,8 @@ export const formatBookmarkName = (
// Replace {direction} -> incoming (K162) or outgoing (all other types)
result = result.replace(/\{direction\}/g, () => getDirectionString(signature.type === 'K162', mapping));
// Replace {spawn} -> Static or Wandering for outgoing wormholes (empty for K162)
result = result.replace(/\{spawn\}/g, () => getSpawnTypeString(signature.type, currentSystemStatics, mapping));
// Replace {spawn_type} -> Static or Wandering for outgoing wormholes, or K162 for incoming
result = result.replace(/\{spawn_type\}/g, () => getSpawnTypeString(signature.type, currentSystemStatics, mapping));
// Cleanup whitespace
return result.trim().replace(/\s+/g, ' ');