From 2dc43ad60e04922c630449f033f52e9e6839e2df Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 14:37:14 +0400 Subject: feat(factory): offer starter warbots on missions without designs Assemble compatible starter designs from local template layouts and the player clan technology table. Keep those layouts out of enemy factory fallback selection. The Constructor replay walked from spawn, captured the factory, ordered from the communicator, boarded the released warbot and won after capturing the hangar. The interactive constructor remains open. --- crates/fparkan-runtime/src/production.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crates/fparkan-runtime/src/production.rs') diff --git a/crates/fparkan-runtime/src/production.rs b/crates/fparkan-runtime/src/production.rs index b33fbf1e..aa9b804a 100644 --- a/crates/fparkan-runtime/src/production.rs +++ b/crates/fparkan-runtime/src/production.rs @@ -590,7 +590,7 @@ pub(super) fn order_script_factory( return None; } // shortcut: retain the compatible reserve for unsupported catalog requests. - schemes_for_plant(mission, production, index).find(|&(scheme, _)| { + schemes_for_plant(mission, production, index).find(|&(scheme, path)| { let draft = &mission.object_drafts[production.reserve_start + scheme * RESERVE_SLOTS]; let fallback = if production.customized { @@ -598,7 +598,9 @@ pub(super) fn order_script_factory( } else { scheme < production.player_scheme_count }; - fallback && draft.unit_dat_header_flags == Some(class) + fallback + && !path.starts_with(crate::robot_designer::STARTER_SCHEME_PREFIX) + && draft.unit_dat_header_flags == Some(class) }) }) .map(|(scheme, _)| scheme) -- cgit v1.2.3