Clarify gun burst counters and record the verified realism follow-up (#91)

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
2026-11-02 21:48:47 +03:00
parent ac866d64a0
commit c4b72da3ff
3 changed files with 51 additions and 2 deletions
+2 -2
View File
@@ -256,8 +256,8 @@ fn cell(sim: &Sim, index: usize, x: f32, y: f32, w: f32, h: f32, s: &mut Vec<Sha
if !matches!(sam.kind, crate::sim::SamKind::Gepard) {
line += &format!("Р{} ", sam.missiles);
}
if sam.bursts > 0 || spec.key == "gepard" {
line += &format!("С{} ", sam.bursts);
if crate::sim::catalog::unit(sam.kind).has_gun() {
line += &format!("Оч{} ", sam.bursts);
}
line += &format!("сб.{} [{}]", sam.kills, roles_text(sam.roles));
s.push(text(fit(line, cw), cx, y + h - 10.0, 0xFF9FE0FF));
+2
View File
@@ -34,6 +34,8 @@ pub struct Unit {
impl Unit {
pub fn id(self) -> &'static str { self.kind.spec().key }
/// Whether the unit has a gun; callers need no access to the private weapon profile.
pub fn has_gun(self) -> bool { self.kind.spec().gun.is_some() }
pub fn ground_strike(self) -> GroundStrike {
GroundStrike::Unavailable { reason: "Для этой техники не задан подтверждённый профиль удара по координатам" }
}