From a519d5efefb4d846a9f65c6b9376fa245215a0f6 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 11:58:00 +0400 Subject: fix(ai): route capturers to authored building entrances --- adapters/fparkan-render-vulkan/src/asset_mesh.rs | 6 ++ apps/fparkan-game/src/main.rs | 4 + crates/fparkan-msh/src/hallway.rs | 130 +++++++++++++++++++++++ crates/fparkan-msh/src/lib.rs | 51 +++------ crates/fparkan-runtime/src/building_passage.rs | 114 ++++++++++++++++++++ crates/fparkan-runtime/src/clan_ai_events.rs | 2 +- crates/fparkan-runtime/src/clan_targeting.rs | 36 ++++--- crates/fparkan-runtime/src/lib.rs | 2 + crates/fparkan-runtime/src/mesh_collision.rs | 1 + crates/fparkan-runtime/src/route_obstacles.rs | 26 +++++ docs/appendices/knowledge-boundaries.md | 6 +- docs/tomes/06-behavior.md | 26 +++-- 12 files changed, 340 insertions(+), 64 deletions(-) create mode 100644 crates/fparkan-msh/src/hallway.rs create mode 100644 crates/fparkan-runtime/src/building_passage.rs diff --git a/adapters/fparkan-render-vulkan/src/asset_mesh.rs b/adapters/fparkan-render-vulkan/src/asset_mesh.rs index 06872a26..06bd3be6 100644 --- a/adapters/fparkan-render-vulkan/src/asset_mesh.rs +++ b/adapters/fparkan-render-vulkan/src/asset_mesh.rs @@ -1413,6 +1413,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: None, } } @@ -1481,6 +1482,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: None, }; @@ -1727,6 +1729,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![ AnimKey24 { @@ -1789,6 +1792,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![ AnimKey24 { @@ -1898,6 +1902,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![AnimKey24 { time: AnimationTime(0.0), @@ -1992,6 +1997,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![AnimKey24 { time: AnimationTime(0.0), diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index 01ca1c30..4f90b9eb 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -13403,6 +13403,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![ AnimKey24 { @@ -13475,6 +13476,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![AnimKey24 { time: AnimationTime(0.0), @@ -13530,6 +13532,7 @@ mod tests { }]), node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![ AnimKey24 { @@ -13679,6 +13682,7 @@ mod tests { ), node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![AnimKey24 { time: AnimationTime(0.0), diff --git a/crates/fparkan-msh/src/hallway.rs b/crates/fparkan-msh/src/hallway.rs new file mode 100644 index 00000000..d0d646d8 --- /dev/null +++ b/crates/fparkan-msh/src/hallway.rs @@ -0,0 +1,130 @@ +use crate::{read_f32, read_u32, MshError, NodeId, RawStream}; + +/// Model-local navigation points and links from MSH Res17. +#[derive(Clone, Debug, Default, PartialEq)] +pub struct Hallway { + /// Points in native selection order. + pub points: Vec, + /// Start and end point indexes for each authored link. + pub links: Vec<[u32; 2]>, +} + +/// A navigation point attached to a mesh node. +#[derive(Clone, Copy, Debug, PartialEq)] +pub struct HallwayPoint { + /// Position relative to the attached mesh node. + pub position: [f32; 3], + /// Raw point flags. + pub flags: u32, + /// Mesh node used for the world-space projection. + pub node: NodeId, +} + +pub(super) fn parse(stream: &RawStream) -> Result { + const POINT_BYTES: usize = 20; + const LINK_BYTES: usize = 40; + let points = stream.attributes.attr1 as usize; + let links = stream.attributes.attr2 as usize; + let size = points as u64 * POINT_BYTES as u64 + links as u64 * LINK_BYTES as u64; + if size != stream.bytes.len() as u64 { + return Err(MshError::InvalidGeometry( + "invalid Res17 point table length".into(), + )); + } + let (point_bytes, link_bytes) = stream.bytes.split_at(points * POINT_BYTES); + let points = point_bytes + .chunks_exact(POINT_BYTES) + .map(|point| { + Ok(HallwayPoint { + position: [ + read_f32(point, 0)?, + read_f32(point, 4)?, + read_f32(point, 8)?, + ], + flags: read_u32(point, 12)?, + node: NodeId(read_u32(point, 16)?), + }) + }) + .collect::>()?; + let links = link_bytes + .chunks_exact(LINK_BYTES) + .map(|link| Ok([read_u32(link, 0)?, read_u32(link, 4)?])) + .collect::>()?; + Ok(Hallway { points, links }) +} + +impl Hallway { + pub(super) fn hero_exits( + &self, + node_count: usize, + ) -> Result, MshError> { + self.points + .iter() + .filter(|point| point.flags & 0x1000_4000 == 0x4000) + .map(|point| { + if point.node.0 as usize >= node_count + || !point.position.iter().all(|axis| axis.is_finite()) + { + return Err(MshError::InvalidGeometry( + "invalid Res17 hero exit point".into(), + )); + } + Ok((point.node, point.position)) + }) + .collect() + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::EntryAttributes; + + #[test] + fn res17_retains_capture_and_exit_points_in_link_order() { + let bytes = [ + 1.0_f32.to_bits(), + 0, + 0, + 0x40, + 4, // Capture point. + 0, + 0, + 0, + 0x4000, + 2, // Hero exit. + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, // One 40-byte link. + ] + .into_iter() + .flat_map(u32::to_le_bytes) + .collect(); + let hallway = parse(&RawStream { + attributes: EntryAttributes { + attr1: 2, + attr2: 1, + attr3: 0, + }, + bytes, + }) + .unwrap(); + assert_eq!( + hallway.points[0], + HallwayPoint { + position: [1.0, 0.0, 0.0], + flags: 0x40, + node: NodeId(4), + } + ); + assert_eq!(hallway.links, [[1, 0]]); + assert_eq!(hallway.hero_exits(5).unwrap(), [(NodeId(2), [0.0; 3])]); + } +} diff --git a/crates/fparkan-msh/src/lib.rs b/crates/fparkan-msh/src/lib.rs index 334a6353..7a388e3d 100644 --- a/crates/fparkan-msh/src/lib.rs +++ b/crates/fparkan-msh/src/lib.rs @@ -8,6 +8,9 @@ use fparkan_animation::{ }; use fparkan_nres::{EntryMeta, NresDocument, NresError}; +mod hallway; +pub use hallway::{Hallway, HallwayPoint}; + /// Node table stream. pub const STREAM_NODE_TABLE: u32 = 1; /// Slot stream. @@ -119,6 +122,8 @@ pub struct ModelAsset { pub node_names: Option>>, /// Node-local points whose flags mark a hero exit. pub hero_exit_points: Vec<(NodeId, [f32; 3])>, + /// Points and links used by the building's indoor routes. + pub hallway: Hallway, /// Optional decoded node-animation streams. pub animation: Option, } @@ -1139,10 +1144,11 @@ fn parse_model_document(document: &NresDocument) -> Result let node_names = read_optional_stream(document, STREAM_NAMES)? .map(|raw| parse_res10_names(&raw.bytes, node_count)) .transpose()?; - let hero_exit_points = read_optional_stream(document, STREAM_GAMEPLAY_POINTS)? - .map(|raw| parse_hero_exit_points(&raw, node_count)) + let hallway = read_optional_stream(document, STREAM_GAMEPLAY_POINTS)? + .map(|raw| hallway::parse(&raw)) .transpose()? .unwrap_or_default(); + let hero_exit_points = hallway.hero_exits(node_count)?; let animation = parse_optional_animation(document)?; Ok(ModelAsset { @@ -1162,46 +1168,11 @@ fn parse_model_document(document: &NresDocument) -> Result triangle_descriptors, node_names, hero_exit_points, + hallway, animation, }) } -fn parse_hero_exit_points( - stream: &RawStream, - node_count: usize, -) -> Result, MshError> { - const POINT_BYTES: usize = 20; - let point_count = stream.attributes.attr1 as usize; - let pairs = stream.attributes.attr2 as usize; - if !stream.bytes.len().is_multiple_of(POINT_BYTES) - || (point_count as u64 + 2 * pairs as u64) != (stream.bytes.len() / POINT_BYTES) as u64 - { - return Err(MshError::InvalidGeometry( - "invalid Res17 point table length".into(), - )); - } - let mut exits = Vec::new(); - for point in stream.bytes.chunks_exact(POINT_BYTES).take(point_count) { - let flags = read_u32(point, 12)?; - if flags & 0x1000_4000 != 0x4000 { - continue; - } - let node = NodeId(read_u32(point, 16)?); - let position = [ - read_f32(point, 0)?, - read_f32(point, 4)?, - read_f32(point, 8)?, - ]; - if node.0 as usize >= node_count || !position.iter().all(|axis| axis.is_finite()) { - return Err(MshError::InvalidGeometry( - "invalid Res17 hero exit point".into(), - )); - } - exits.push((node, position)); - } - Ok(exits) -} - fn parse_optional_animation(document: &NresDocument) -> Result, MshError> { let keys = read_optional_stream(document, STREAM_ANIMATION_KEYS)?; let frame_map = read_optional_stream(document, STREAM_ANIMATION_FRAME_MAP)?; @@ -2346,6 +2317,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![ AnimKey24 { @@ -2410,6 +2382,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![ AnimKey24 { @@ -2477,6 +2450,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: Some(ModelAnimation { keys: vec![ AnimKey24 { @@ -3371,6 +3345,7 @@ mod tests { batches, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: None, triangle_descriptors: Some( tri_flags diff --git a/crates/fparkan-runtime/src/building_passage.rs b/crates/fparkan-runtime/src/building_passage.rs new file mode 100644 index 00000000..9ed02556 --- /dev/null +++ b/crates/fparkan-runtime/src/building_passage.rs @@ -0,0 +1,114 @@ +//! Exterior approach to a capture point in a building's authored hallway. + +use crate::{ + projectile_parts::root_model, route_motion::route_points, route_obstacles::model_footprint, + MissionAssets, TerrainWorld, +}; +use fparkan_msh::{node38_fallback_hierarchy, Hallway}; +use fparkan_render::LegacyIron3dEulerTransform; +use fparkan_terrain::SurfaceQuery; +use fparkan_world::TransformState; +use std::collections::VecDeque; + +pub(super) struct CaptureEntrance { + pub(super) staging: [f32; 2], + pub(super) capture: [f32; 3], +} + +pub(super) fn capture_entrance( + assets: &MissionAssets, + terrain: &TerrainWorld, + index: usize, + pose: TransformState, + from: [f32; 3], + clearance: f32, +) -> Option { + let model = &root_model(assets, index)?.validated; + let hallway = &model.hallway; + // Behavior::GoInside passes mask 0x40 to HallWay's first-match query. + let capture = hallway + .points + .iter() + .position(|point| point.flags & 0x40 != 0)?; + let toward_capture = links_to(hallway, capture); + let hierarchy = node38_fallback_hierarchy(model)?; + let transform = LegacyIron3dEulerTransform { + translation: pose.position.map(f32::from_bits), + orientation_radians: pose.orientation.map(f32::from_bits), + }; + let scale = pose.scale.map(f32::from_bits); + let project = |index: usize| { + let point = hallway.points.get(index)?; + let node = hierarchy.poses.get(point.node.0 as usize)?; + transform.try_transform_scaled_point(node.transform_point(point.position), scale) + }; + let capture = project(capture)?; + let footprint = model_footprint(assets, index, pose)?.expanded(clearance); + hallway + .points + .iter() + .enumerate() + .filter(|(_, point)| point.flags & 0x1000_0001 == 1) + .filter_map(|(index, _)| { + let entrance = project(index)?; + let inside = project(toward_capture[index]?)?; + let staging = footprint.exterior_along( + [entrance[0], entrance[1]], + [entrance[0] - inside[0], entrance[1] - inside[1]], + )?; + let ground = terrain.height_at(staging).ok()??; + route_points(terrain, from, [staging[0], staging[1], ground]).ok()??; + let distance: f32 = (0..3).map(|i| (from[i] - entrance[i]).powi(2)).sum(); + Some((distance, CaptureEntrance { staging, capture })) + }) + .min_by(|a, b| a.0.total_cmp(&b.0)) + .map(|(_, entrance)| entrance) +} + +fn links_to(hallway: &Hallway, goal: usize) -> Vec> { + let mut next = vec![None; hallway.points.len()]; + next[goal] = Some(goal); + let mut queue = VecDeque::from([goal]); + while let Some(point) = queue.pop_front() { + for &[a, b] in &hallway.links { + let (a, b) = (a as usize, b as usize); + let neighbor = if a == point { + b + } else if b == point { + a + } else { + continue; + }; + if let Some(slot @ None) = next.get_mut(neighbor) { + *slot = Some(point); + queue.push_back(neighbor); + } + } + } + next +} + +#[cfg(test)] +mod tests { + use super::*; + use fparkan_msh::{HallwayPoint, NodeId}; + + #[test] + fn only_connected_entrances_lead_to_the_capture_point() { + let hallway = Hallway { + points: vec![ + HallwayPoint { + position: [0.0; 3], + flags: 0, + node: NodeId(0) + }; + 5 + ], + links: vec![[1, 0], [1, 2], [2, 3], [3, 0], [4, 9]], + }; + assert_eq!( + links_to(&hallway, 3), + [Some(3), Some(2), Some(3), Some(3), None] + ); + } +} diff --git a/crates/fparkan-runtime/src/clan_ai_events.rs b/crates/fparkan-runtime/src/clan_ai_events.rs index dc72048a..30ceb573 100644 --- a/crates/fparkan-runtime/src/clan_ai_events.rs +++ b/crates/fparkan-runtime/src/clan_ai_events.rs @@ -806,7 +806,7 @@ impl LoadedMissionState { let problem = problem.as_ref() .ok_or("Handler(15) capture requires a current problem")?; let approach = crate::clan_targeting::send_capturer( - &mut self.unit_patrol, world, &self.object_drafts, &self.mission_assets, unit, target_id, + &mut self.unit_patrol, world, &self.object_drafts, &self.mission_assets, &self.terrain, unit, target_id, ); if let Some(approach) = approach { self.clan_ai_events.capture_orders.push((OwnerId(clan as u16), problem.key, approach)); diff --git a/crates/fparkan-runtime/src/clan_targeting.rs b/crates/fparkan-runtime/src/clan_targeting.rs index 490a42f8..14ecb4b7 100644 --- a/crates/fparkan-runtime/src/clan_targeting.rs +++ b/crates/fparkan-runtime/src/clan_targeting.rs @@ -1,6 +1,7 @@ use crate::{ - clan_combat_strength::unit_strength, MissionControlDeviceTableState, MissionDocument, - MissionObjectDraft, + building_passage::capture_entrance, clan_combat_strength::unit_strength, + projectile::unit_sphere, MissionControlDeviceTableState, MissionDocument, MissionObjectDraft, + TerrainWorld, }; use fparkan_world::{ handle_by_original_id, identity_metadata, registration_sequence, transform_state, ObjectHandle, @@ -27,6 +28,7 @@ pub(super) fn send_capturer( world: &World, drafts: &[MissionObjectDraft], assets: &crate::MissionAssets, + terrain: &TerrainWorld, unit: Capturer, target_id: u32, ) -> Option { @@ -41,21 +43,27 @@ pub(super) fn send_capturer( { return None; } - let from = transform_state(world, unit.handle) - .ok()? - .position - .map(f32::from_bits); - // shortcut: use the communicator mesh until the native door and interior route are wired. - let point = nearest_platform_point( - crate::mission_events::communicator_triangles(assets, index, class, pose)?, - from, - )?; - let [x, y, _] = point; + let unit_pose = transform_state(world, unit.handle).ok()?; + let from = unit_pose.position.map(f32::from_bits); + let unit_id = identity_metadata(world, unit.handle).ok()?.original_id?; + let clearance = unit_sphere(assets, unit_id.0 as usize, unit_pose).map_or(0.0, |(_, r)| r); + let (destination, point) = + if let Some(entrance) = capture_entrance(assets, terrain, index, pose, from, clearance) { + // shortcut: stop outside the connected door until movement on the + // indoor links and their gate messages are supported. + (entrance.staging, entrance.capture) + } else { + let point = nearest_platform_point( + crate::mission_events::communicator_triangles(assets, index, class, pose)?, + from, + )?; + ([point[0], point[1]], point) + }; patrol .get_or_insert_with(crate::unit_patrol::UnitPatrol::scripted) - .move_to(world, unit.handle, [x, y], false); + .move_to(world, unit.handle, destination, false); eprintln!( - "sim_coverage script_capture_approach_stub=1 unit={} target={} target_id={target_id}", + "sim_coverage script_capture_approach_stub=1 unit={} target={} target_id={target_id} destination={destination:?}", unit.handle.slot, unit.target.slot ); Some(CaptureApproach { diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index f11614fb..9f3557af 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -48,6 +48,7 @@ use behavior_profile::prepare_behavior_profile_states; mod boarding; mod builder_supply; mod building_door; +mod building_passage; mod clan_ai_events; mod clan_area_strength; mod clan_build_limits; @@ -9413,6 +9414,7 @@ mod tests { triangle_descriptors: None, node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: None, } } diff --git a/crates/fparkan-runtime/src/mesh_collision.rs b/crates/fparkan-runtime/src/mesh_collision.rs index 7783400e..9d1fa8b8 100644 --- a/crates/fparkan-runtime/src/mesh_collision.rs +++ b/crates/fparkan-runtime/src/mesh_collision.rs @@ -452,6 +452,7 @@ mod tests { triangle_descriptors: Some(triangle_descriptors), node_names: None, hero_exit_points: Vec::new(), + hallway: Default::default(), animation: None, } } diff --git a/crates/fparkan-runtime/src/route_obstacles.rs b/crates/fparkan-runtime/src/route_obstacles.rs index eb29b680..7ac73f19 100644 --- a/crates/fparkan-runtime/src/route_obstacles.rs +++ b/crates/fparkan-runtime/src/route_obstacles.rs @@ -154,6 +154,32 @@ impl Footprint { (0..2).all(|axis| p[axis] >= self.min[axis] && p[axis] <= self.max[axis]) } + pub(super) fn exterior_along(self, point: [f32; 2], direction: [f32; 2]) -> Option<[f32; 2]> { + if !self.contains(point) { + return Some(point); + } + let length = direction[0].hypot(direction[1]); + if length == 0.0 || !length.is_finite() { + return None; + } + let direction = direction.map(|component| component / length); + let distance = (0..2) + .filter(|&axis| direction[axis] != 0.0) + .map(|axis| { + let edge = if direction[axis] < 0.0 { + self.min[axis] + } else { + self.max[axis] + }; + (edge - point[axis]) / direction[axis] + }) + .fold(f32::INFINITY, f32::min) + + CORNER_GAP; + Some(std::array::from_fn(|axis| { + point[axis] + direction[axis] * distance + })) + } + pub(super) fn intersects(self, from: [f32; 2], to: [f32; 2]) -> bool { let (mut first, mut last) = (0.0_f32, 1.0_f32); for axis in 0..2 { diff --git a/docs/appendices/knowledge-boundaries.md b/docs/appendices/knowledge-boundaries.md index 2ee681af..e6be81c5 100644 --- a/docs/appendices/knowledge-boundaries.md +++ b/docs/appendices/knowledge-boundaries.md @@ -624,9 +624,9 @@ ID выпущенной машины внутренний. Подъезд исп Для выбора цели и оценки охраны используется реестр размещённых объектов. Порядок областей ArealMap и учёт произведённых роботов открыты. `script_nearest_capturer_approx` отмечает выбор по расстоянию при общей скорости -роботов. `script_capture_approach_stub` считает маршруты к коммуникатору по -парам юнит/цель. Нужен маршрут внутри строения: наружная высота может -оставить робота над площадкой. Нативные события завершения открыты. +роботов. `script_capture_approach_stub` считает маршруты захватчиков по +парам юнит/цель. При наличии графа машина подходит к связанной двери. +Проход по внутренним связям, открытие ворот и резервный обход BAS открыты. `script_group_order_approx` считает приказы группе по клану и цели. `TAKE_BY_HITS` использует свободных варботов, `TAKE_ALL_FREE` — свободные записи всех классов. `TAKE_ALL_BATTLE_UNITS` забирает свободных варботов и diff --git a/docs/tomes/06-behavior.md b/docs/tomes/06-behavior.md index b338849b..98f83cc7 100644 --- a/docs/tomes/06-behavior.md +++ b/docs/tomes/06-behavior.md @@ -380,14 +380,24 @@ FParkan скорость движения пока общая, поэтому д Если подходящий робот ещё собирается, он становится кандидатом после выпуска. Задача оригинала сначала пытается войти в строение (`Behavior.dll`, RVA -`0x3094f`). В резервной ветке по RVA `0x309ce` она запрашивает набор точек -через селектор `0x203` строения и ищет ближайшую в доступной области. -SHA-256 GOG `Behavior.dll` -`ddfbdbde07832358fe6e35e01c8dba9b58e7313789498b6049ed51d4ed9baf99`. -Пока FParkan ведёт робота по рельефу к ближайшему треугольнику площадки -коммуникатора. Строение меняет владельца только при достижении площадки -по горизонтали и высоте. При смене владельца переносится и запись строения -между распределителями ресурсов кланов. +`0x3094f`). Ветка `0x1402` запрашивает граф проходов и передаёт маску +`0x40`. В GOG `ArealMap.dll` (SHA-256 +`a25f9254ebb339d70e2e07c8121950191e9584ca0858d8e9c2e2b6c671edf6ea`) +выбор по RVA `0xa7e0` возвращает первую подходящую точку, а `0xa760` +переносит её из координат узла MSH в мир. У малого завода в штатных +«Двух крепостях» это точка 31 в подземной рубке. + +Граф хранится в `Res17` модели. Запись точки занимает 20 байт и содержит +три координаты, флаги и индекс узла MSH. Запись связи занимает 40 байт +и начинается с пары индексов точек. FParkan находит связанную с рубкой +наружную дверь и ведёт робота к ней. Промежуточная цель остаётся за +границей охраняемого контура, пока не подключён ход по внутренним связям. +При смене владельца запись строения переносится между распределителями. + +Если вход не удаётся, RVA `0x309ce` выбирает ближайшую доступную точку +через селектор `0x203` строения. В оригинале десять точек склада и +двенадцать у генератора совпадают со второй секцией BAS после переноса +в мир. Замыкающая копия первой вершины в список не входит. ### Выбор строения для атаки -- cgit v1.2.3