Merge recon flights and partial reports into the classified radar picture (#135)
build / mod (push) Failing after 1m5s

Co-Authored-By: Kimi Code <noreply@moonshot.ai>

# Conflicts:
#	airdef-mod/src/sim/mod.rs
This commit is contained in:
2026-11-21 00:07:39 +03:00
13 changed files with 2171 additions and 71 deletions
+13 -1
View File
@@ -26,8 +26,10 @@ mod sight;
mod terrain;
mod ew;
mod optical;
mod recon;
mod durable;
pub use ew::{AimReport, Confidence, ContactReport, EnemyPictureReport, Intent, PendingReport};
pub use ew::{AimReport, Confidence, ContactReport, EnemyPictureReport, Intent, PendingReport, ReconReport, ReconSortieReport};
pub use recon::{Category, Mark, Quality, Source, is_drone_id, priority_parts};
pub mod lights;
mod logistics;
mod orders;
@@ -175,6 +177,11 @@ impl Rng {
pub fn state(&self) -> u64 {
self.0
}
/// Puts the generator back exactly where it was (a recon launch must not spend the
/// strike's combat randomness).
pub(super) fn set_state(&mut self, state: u64) {
self.0 = state;
}
pub fn next(&mut self) -> u64 {
self.0 ^= self.0 << 13;
self.0 ^= self.0 >> 7;
@@ -1475,6 +1482,8 @@ pub struct Sim {
pub tally: record::Tally,
/// What the enemy has learned.
intel: ew::Intel,
/// Reconnaissance flights and the partial picture they radioed home (#135).
recon: recon::Recon,
/// Night: guns need light (the mod sets it from the game's clock).
pub night: bool,
/// The long fires at crash and impact points (#52).
@@ -1551,6 +1560,7 @@ impl Sim {
recordings: 0,
tally: record::Tally::default(),
intel: ew::Intel::default(),
recon: recon::Recon::default(),
night: false,
fires: fires::Fires::default(),
day_time: None,
@@ -1663,6 +1673,7 @@ impl Sim {
self.plan = None;
self.retargets.clear();
self.known_relief = None;
self.recon.clear_sorties();
self.wave = None;
// Ammunition still to cook off, flares in the sky.
self.later.clear();
@@ -1710,6 +1721,7 @@ impl Sim {
self.release_queue(ground, out);
self.begin_recording_if_active();
self.step_drones(ground, player, out);
self.step_recon(out);
self.step_later(ground, player, out);
self.step_moves(ground, out);
self.step_supply(out);