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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VGNNLeFWhVzvxkK9qVXP2K
This commit is contained in:
2026-07-09 12:26:19 +02:00
parent 19ed70ca92
commit 17ef87dec2

View File

@@ -707,14 +707,7 @@ void Simulation::generateSchematicChoices(int destroyedStationLevel)
else else
{ {
option.type = SchematicType::Recipe; option.type = SchematicType::Recipe;
for (const RecipeDef& def : m_config.recipes.recipes) option.displayName = toDisplayName(entry.id);
{
if (def.id == entry.id && !def.outputs.empty())
{
option.displayName = toDisplayName(def.outputs[0].item);
break;
}
}
} }
// REQ-DEF-SCHEMATIC-DROP: preview recipes newly implicitly unlocked by this option. // REQ-DEF-SCHEMATIC-DROP: preview recipes newly implicitly unlocked by this option.