From f319ccc2eb55a386ebc2a142fc0e56eb77eb1e91 Mon Sep 17 00:00:00 2001 From: Lee Solway Date: Mon, 3 Aug 2026 12:49:50 +0100 Subject: [PATCH] Updated spawn template var name inline with existing vars --- .../MapSettings/components/BookmarkNameFormatSetting.tsx | 2 +- assets/js/hooks/Mapper/helpers/bookmarkFormatHelper.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/hooks/Mapper/components/mapRootContent/components/MapSettings/components/BookmarkNameFormatSetting.tsx b/assets/js/hooks/Mapper/components/mapRootContent/components/MapSettings/components/BookmarkNameFormatSetting.tsx index 5c43c114..5a9a0419 100644 --- a/assets/js/hooks/Mapper/components/mapRootContent/components/MapSettings/components/BookmarkNameFormatSetting.tsx +++ b/assets/js/hooks/Mapper/components/mapRootContent/components/MapSettings/components/BookmarkNameFormatSetting.tsx @@ -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 { diff --git a/assets/js/hooks/Mapper/helpers/bookmarkFormatHelper.ts b/assets/js/hooks/Mapper/helpers/bookmarkFormatHelper.ts index 5da4d86b..e54154c0 100644 --- a/assets/js/hooks/Mapper/helpers/bookmarkFormatHelper.ts +++ b/assets/js/hooks/Mapper/helpers/bookmarkFormatHelper.ts @@ -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, ' ');