cleanup (cargo fmt)
This commit is contained in:
parent
f2ed30a5b6
commit
20b2ae049a
|
@ -491,7 +491,8 @@ pub fn handle_vehicle_enter_exit(
|
||||||
commands.entity(driver).insert(collider.clone());
|
commands.entity(driver).insert(collider.clone());
|
||||||
}
|
}
|
||||||
if let Ok(mut flashlight_trans) = q_playerflashlight.get_single_mut() {
|
if let Ok(mut flashlight_trans) = q_playerflashlight.get_single_mut() {
|
||||||
flashlight_trans.rotation = Quat::from_rotation_y(180f32.to_radians());
|
flashlight_trans.rotation =
|
||||||
|
Quat::from_rotation_y(180f32.to_radians());
|
||||||
flashlight_trans.translation = Vec3::new(0.0, 0.0, 1.0);
|
flashlight_trans.translation = Vec3::new(0.0, 0.0, 1.0);
|
||||||
}
|
}
|
||||||
commands.entity(driver).insert(RigidBody::Dynamic);
|
commands.entity(driver).insert(RigidBody::Dynamic);
|
||||||
|
|
|
@ -36,8 +36,7 @@ impl Plugin for CameraPlugin {
|
||||||
app.add_systems(Update, update_map_only_object_visibility.run_if(alive));
|
app.add_systems(Update, update_map_only_object_visibility.run_if(alive));
|
||||||
app.add_systems(
|
app.add_systems(
|
||||||
PostUpdate,
|
PostUpdate,
|
||||||
manage_player_actor
|
manage_player_actor.in_set(sync::SyncSet::PositionToTransform),
|
||||||
.in_set(sync::SyncSet::PositionToTransform),
|
|
||||||
);
|
);
|
||||||
app.add_systems(
|
app.add_systems(
|
||||||
PostUpdate,
|
PostUpdate,
|
||||||
|
|
|
@ -507,9 +507,7 @@ fn handle_achievement_event(
|
||||||
}
|
}
|
||||||
AchievementEvent::InJupitersShadow => {
|
AchievementEvent::InJupitersShadow => {
|
||||||
if !tracker.in_jupiters_shadow {
|
if !tracker.in_jupiters_shadow {
|
||||||
ew_game.send(GameEvent::Achievement(
|
ew_game.send(GameEvent::Achievement("Enter Jupiter's Shadow".into()));
|
||||||
"Enter Jupiter's Shadow".into(),
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
tracker.in_jupiters_shadow = true;
|
tracker.in_jupiters_shadow = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -415,10 +415,7 @@ impl AchievementTracker {
|
||||||
(self.ride_every_vehicle, "ride every vehicle".into()),
|
(self.ride_every_vehicle, "ride every vehicle".into()),
|
||||||
(self.talk_to_everyone, "talk to everyone".into()),
|
(self.talk_to_everyone, "talk to everyone".into()),
|
||||||
(self.find_earth, "find Earth".into()),
|
(self.find_earth, "find Earth".into()),
|
||||||
(
|
(self.in_jupiters_shadow, "enter Jupiter's shadow".into()),
|
||||||
self.in_jupiters_shadow,
|
|
||||||
"enter Jupiter's shadow".into(),
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
pub fn to_summary(&self) -> String {
|
pub fn to_summary(&self) -> String {
|
||||||
|
|
Loading…
Reference in a new issue