diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-01 13:37:14 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-01 13:37:14 +0300 |
| commit | 2dc43ad60e04922c630449f033f52e9e6839e2df (patch) | |
| tree | 4c84ed62205719b5e239417990eb8afb395c44cc /crates/fparkan-runtime/src/lib.rs | |
| parent | 0da658fa6dfc7b2a052066561d904353532220ce (diff) | |
| download | fparkan-2dc43ad60e04922c630449f033f52e9e6839e2df.tar.xz fparkan-2dc43ad60e04922c630449f033f52e9e6839e2df.zip | |
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.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 85052120..adff6d00 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -2038,6 +2038,13 @@ fn load_mission_with_options( source, } })?; + if build_schemes.is_empty() + && options.asset_scope == MissionAssetScope::Full + && options.start_autodemo + && request.mode == MissionMode::SingleMission + { + (vfs, build_schemes) = robot_designer::starting_designs(vfs, &mission); + } let mut loaded_scripts = load_mission_scripts(&vfs, &mission, options.asset_scope)?; let asset_manager = AssetManager::new(CachedResourceRepository::with_payload_cache_budget( vfs.clone(), |
