Move battery status text to the presentation adapter
Sam::status, Comps::describe/worst and Sam::parts_text formatted player-facing Russian in the simulation. The adapter now owns that text: battery_view::sam_status for the panel and map, why_view::parts and why_view::worst for the monitor and the status line. The core keeps the data and gains only the accessors the adapter needs (preparing_cell, public cells/reload_time/magazine/gun facts). Texts are unchanged; the adapter tests pin the existing strings. Co-Authored-By: Kimi Code <noreply@moonshot.ai>
This commit is contained in:
@@ -2338,7 +2338,7 @@ impl AirDef {
|
||||
lines.push((format!("Излучение РЛС: {}", if sam.radar_on { "вкл" } else { "выкл" }), WHITE));
|
||||
btns.push((if sam.radar_on { "Выключить РЛС" } else { "Включить РЛС" }.into(), Act::RadarEmission, sam.radar_on));
|
||||
}
|
||||
lines.push((sam.status(), WHITE));
|
||||
lines.push((crate::battery_view::sam_status(sam), WHITE));
|
||||
lines.push((format!("Исправен {:.0}% · {:.0} {:.0}", sam.health * 100.0, sam.pos.x, sam.pos.z), GREY));
|
||||
if k == SamKind::Depot {
|
||||
lines.push((format!("Ударные RM48U: {} · снятые 48Н6: {}", sam.ground_stock, sam.air_48n6_stock), WHITE));
|
||||
|
||||
Reference in New Issue
Block a user