show radioactivity icon on reactor overload

This commit is contained in:
yuni 2024-09-22 06:42:44 +02:00
parent 5104f2bbcf
commit 5aa815a803

View file

@ -703,7 +703,9 @@ fn update_dashboard(
Dashboard::RotationStabiliser => !settings.rotation_stabilizer_active,
Dashboard::CruiseControl => settings.cruise_control_active,
Dashboard::Radioactivity => {
if let Some(pos_jupiter) = id2pos.0.get(cmd::ID_JUPITER) {
if settings.reactor_state == 2 {
true
} else if let Some(pos_jupiter) = id2pos.0.get(cmd::ID_JUPITER) {
pos_jupiter.distance(pos.0) < 140_000_000.0
} else {
false