cargo fmt
This commit is contained in:
parent
0ca58fbdab
commit
ce794662fe
|
@ -369,7 +369,8 @@ fn handle_player_death(
|
|||
});
|
||||
}
|
||||
actor::DamageType::Bullet => {
|
||||
settings.death_cause = "Traumatic brain injury due to a projectile wound.".to_string();
|
||||
settings.death_cause =
|
||||
"Traumatic brain injury due to a projectile wound.".to_string();
|
||||
ew_effect.send(visual::SpawnEffectEvent {
|
||||
class: visual::Effects::FadeIn(css::MAROON.into()),
|
||||
duration: 1.0,
|
||||
|
@ -623,7 +624,10 @@ fn handle_achievement_event(
|
|||
}
|
||||
AchievementEvent::RaceScore => {
|
||||
if !tracker.race_score {
|
||||
ew_game.send(GameEvent::Achievement(format!("Score {} Points In SkyRace", RACE_SCORE_ACHIEVEMENT)));
|
||||
ew_game.send(GameEvent::Achievement(format!(
|
||||
"Score {} Points In SkyRace",
|
||||
RACE_SCORE_ACHIEVEMENT
|
||||
)));
|
||||
}
|
||||
tracker.race_score = true;
|
||||
}
|
||||
|
|
10
src/var.rs
10
src/var.rs
|
@ -437,10 +437,7 @@ impl AchievementTracker {
|
|||
format!("Talk To Everyone{talk}\n"),
|
||||
"Find Earth\n".to_string(),
|
||||
"Enter Jupiter's Shadow\n".to_string(),
|
||||
format!(
|
||||
"Score {} Points In SkyRace\n",
|
||||
game::RACE_SCORE_ACHIEVEMENT
|
||||
),
|
||||
format!("Score {} Points In SkyRace\n", game::RACE_SCORE_ACHIEVEMENT),
|
||||
]
|
||||
}
|
||||
pub fn to_overview(&self) -> Vec<(bool, String)> {
|
||||
|
@ -453,10 +450,7 @@ impl AchievementTracker {
|
|||
(self.in_jupiters_shadow, "enter Jupiter's shadow".into()),
|
||||
(
|
||||
self.race_score,
|
||||
format!(
|
||||
"score {} points in SkyRace",
|
||||
game::RACE_SCORE_ACHIEVEMENT
|
||||
),
|
||||
format!("score {} points in SkyRace", game::RACE_SCORE_ACHIEVEMENT),
|
||||
),
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue