From 17ef87dec2c77dd9dfa5bf20857a6593194cdb79 Mon Sep 17 00:00:00 2001 From: Malte Langkabel Date: Thu, 9 Jul 2026 12:26:19 +0200 Subject: [PATCH] Show recipe schematic id in schematic choice dialog Implement REQ-DEF-SCHEMATIC-DROP: the schematic choice dialog now displays the assembler recipe id instead of the recipe's output item type, matching the ship and module branches which already show the id. This disambiguates recipes that share an output item (e.g. shortcut_steel_plate vs steel_plate). Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01VGNNLeFWhVzvxkK9qVXP2K --- src/lib/sim/Simulation.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/sim/Simulation.cpp b/src/lib/sim/Simulation.cpp index ab0c683..6f03816 100644 --- a/src/lib/sim/Simulation.cpp +++ b/src/lib/sim/Simulation.cpp @@ -707,14 +707,7 @@ void Simulation::generateSchematicChoices(int destroyedStationLevel) else { option.type = SchematicType::Recipe; - for (const RecipeDef& def : m_config.recipes.recipes) - { - if (def.id == entry.id && !def.outputs.empty()) - { - option.displayName = toDisplayName(def.outputs[0].item); - break; - } - } + option.displayName = toDisplayName(entry.id); } // REQ-DEF-SCHEMATIC-DROP: preview recipes newly implicitly unlocked by this option.