aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game
diff options
context:
space:
mode:
Diffstat (limited to 'apps/fparkan-game')
-rw-r--r--apps/fparkan-game/src/main.rs7
-rw-r--r--apps/fparkan-game/src/script_coverage.rs8
2 files changed, 13 insertions, 2 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs
index 68b99426..8949b135 100644
--- a/apps/fparkan-game/src/main.rs
+++ b/apps/fparkan-game/src/main.rs
@@ -7769,10 +7769,13 @@ fn mission_basement_footprints(
) -> Result<Vec<MissionBasementFootprint>, String> {
let mut footprints = Vec::new();
for (object_index, mission_root) in roots.iter().enumerate() {
- // shortcut: deployed mines lack a live BAS cut until terrain can
+ // shortcut: newly built structures lack a live BAS cut until terrain can
// rebuild the affected cells when a building enters the world.
if mission_root.raw_after_resource == u32::MAX
- && mission_root.unit_dat_header_flags == Some(0x8000_0004)
+ && matches!(
+ mission_root.unit_dat_header_flags,
+ Some(0x8000_0004 | 0x8010_0000 | 0x8020_0000)
+ )
{
continue;
}
diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs
index a67ddde3..247d8cff 100644
--- a/apps/fparkan-game/src/script_coverage.rs
+++ b/apps/fparkan-game/src/script_coverage.rs
@@ -50,6 +50,14 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) {
"sim_coverage script_building_site_approx={count} clan={clan} class={class:#010x}"
);
}
+ for &(clan, builder, class, accepted, rejected) in &report.script_construction_orders {
+ if accepted != 0 {
+ eprintln!("sim_coverage script_building_order_approx={accepted} clan={clan} builder={builder} class={class:#010x}");
+ }
+ if rejected != 0 {
+ eprintln!("sim_coverage script_building_rejected={rejected} clan={clan} builder={builder} class={class:#010x}");
+ }
+ }
for &(clan, count) in &report.script_capturer_queries {
eprintln!("sim_coverage script_nearest_capturer_approx={count} clan={clan}");
}