From 85155e2b3fa8b8962a3496ed8e6008851c307497 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Tue, 14 Jan 2020 01:07:54 -0500 Subject: [PATCH] Show miss count in score embed --- youmubot/src/commands/osu/embeds.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youmubot/src/commands/osu/embeds.rs b/youmubot/src/commands/osu/embeds.rs index 6e02cc3..2afa35f 100644 --- a/youmubot/src/commands/osu/embeds.rs +++ b/youmubot/src/commands/osu/embeds.rs @@ -206,7 +206,10 @@ pub(crate) fn score_embed<'a>( Rank::SS | Rank::SSH => format!("SS"), _ if s.perfect => format!("{:.2}% FC", accuracy), Rank::F => format!("{:.2}% {} combo [FAILED]", accuracy, s.max_combo), - v => format!("{:.2}% {} combo {} rank", accuracy, s.max_combo, v), + v => format!( + "{:.2}% {}x {} miss {} rank", + accuracy, s.max_combo, s.count_miss, v + ), }; let score_line = s.pp.map(|pp| format!("{} | {:.2}pp", &score_line, pp))