Record energy loss and exercise meeting geometry
Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
@@ -254,6 +254,7 @@ pub enum SceneKind {
|
||||
MissileLaunch { missile: u32, sam: u32, target: u32, kind: MissileKind, sound: &'static str, pitch: f32 },
|
||||
MotorIgnition { missile: u32, kind: MissileKind, sound: Option<&'static str> },
|
||||
MotorBurnout { missile: u32, kind: MissileKind },
|
||||
MotorEnergyLost { missile: u32, kind: MissileKind, speed: f64 },
|
||||
TrackAcquired { sam: u32, target: u32, ever_own: bool },
|
||||
TrackLost { sam: u32, target: u32 },
|
||||
TrackSource { sam: u32, target: u32, ever_own: bool },
|
||||
@@ -313,6 +314,8 @@ pub struct Tally {
|
||||
pub missed: u32,
|
||||
/// Interceptors whose life ran out with the target still flying.
|
||||
pub expired: u32,
|
||||
/// Interceptors whose post-burn speed fell below their guidance threshold.
|
||||
pub energy_lost: u32,
|
||||
/// Interceptors whose target was gone (shot down by another, or lost) before they arrived.
|
||||
pub orphaned: u32,
|
||||
/// Times a system lost the track of the target it held, which was still in the sky.
|
||||
@@ -330,6 +333,7 @@ impl Tally {
|
||||
Tally {
|
||||
missed: self.missed.saturating_sub(start.missed),
|
||||
expired: self.expired.saturating_sub(start.expired),
|
||||
energy_lost: self.energy_lost.saturating_sub(start.energy_lost),
|
||||
orphaned: self.orphaned.saturating_sub(start.orphaned),
|
||||
tracks_lost: self.tracks_lost.saturating_sub(start.tracks_lost),
|
||||
ammo_waits: self.ammo_waits.saturating_sub(start.ammo_waits),
|
||||
@@ -342,6 +346,7 @@ impl Tally {
|
||||
let parts: Vec<String> = [
|
||||
(self.missed, "промахов по взрывателю"),
|
||||
(self.expired, "ракет выработали ресурс"),
|
||||
(self.energy_lost, "ракет потеряли скорость после выгорания"),
|
||||
(self.orphaned, "ракет остались без цели"),
|
||||
(self.tracks_lost, "потерь трека"),
|
||||
(self.ammo_waits, "ожиданий БК"),
|
||||
|
||||
Reference in New Issue
Block a user