From 16ed6a5695fe61271f50d051c6f67c6eab01f8ff Mon Sep 17 00:00:00 2001 From: mlangkabel Date: Thu, 9 Jul 2026 20:18:38 +0200 Subject: [PATCH] Show schematic id for all three types of drops in choice dialog --- docs/requirements.md | 2 +- src/lib/sim/Simulation.cpp | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/requirements.md b/docs/requirements.md index 9875317..c3ef234 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -313,7 +313,7 @@ Modules in `modules.toml` define a `surface_mask` — a list of strings that des In addition to the conditions above, a schematic is included in the eligible drop pool only when every prerequisite in its optional `unlock_requires` list is currently satisfied (REQ-LOCK-PREREQ). Because the pool is rebuilt for each drop, a schematic gated behind prerequisites first appears only after all of its prerequisites have themselves been unlocked. - Each option in the dialog displays: the schematic name (ship `display_name` from `ships.toml`, module `id` from `modules.toml`, or the output item type for assembler recipes) and the schematic type (ship, module, or assembler recipe). The artifact option (if present) is displayed as a distinct entry with the name "Artifact". + Each option in the dialog displays: the schematic name (ship `id` from `ships.toml`, module `id` from `modules.toml`, or assembler recipe `id` from `recipes.toml`) and the schematic type (ship, module, or assembler recipe). The artifact option (if present) is displayed as a distinct entry with the name "Artifact". Each option additionally displays a vertical list of item names labeled "Unlocks recipes for:", showing which recipes would newly become implicitly unlocked (REQ-LOCK-IMPLICIT) if this option were selected — specifically, the output items of miner recipes and assembler recipes (without `unlock_at_station_level`) that are not currently implicitly unlocked but would become so after applying this option's effect: - For a ship or module schematic, its `materials` are added to the base set per REQ-LOCK-IMPLICIT step 1a before recomputation. 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.