mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 16:58:55 +00:00
Show miss count in score embed
This commit is contained in:
parent
abd5327296
commit
85155e2b3f
1 changed files with 4 additions and 1 deletions
|
@ -206,7 +206,10 @@ pub(crate) fn score_embed<'a>(
|
||||||
Rank::SS | Rank::SSH => format!("SS"),
|
Rank::SS | Rank::SSH => format!("SS"),
|
||||||
_ if s.perfect => format!("{:.2}% FC", accuracy),
|
_ if s.perfect => format!("{:.2}% FC", accuracy),
|
||||||
Rank::F => format!("{:.2}% {} combo [FAILED]", accuracy, s.max_combo),
|
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 =
|
let score_line =
|
||||||
s.pp.map(|pp| format!("{} | {:.2}pp", &score_line, pp))
|
s.pp.map(|pp| format!("{} | {:.2}pp", &score_line, pp))
|
||||||
|
|
Loading…
Add table
Reference in a new issue