chore: also print playCount
This commit is contained in:
@@ -69,9 +69,10 @@ pub struct UserMusicDetail {
|
||||
impl Display for UserMusicDetail {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
if let Some(music_title) = query_music(&self.music_id).map(|i| &i.name) {
|
||||
f.write_fmt(format_args!("曲目: \t{music_title}\n"))?;
|
||||
f.write_fmt(format_args!("曲目名称: \t{music_title}\n"))?;
|
||||
}
|
||||
f.write_fmt(format_args!("难度: \t{}\n", level_name(self.level)))?;
|
||||
f.write_fmt(format_args!("难度名称: \t{}\n", level_name(self.level)))?;
|
||||
f.write_fmt(format_args!("游玩次数: \t{}\n", self.play_count))?;
|
||||
f.write_fmt(format_args!(
|
||||
"达成率: \t{}.{:04}%\n",
|
||||
self.achievement / 10000,
|
||||
@@ -98,6 +99,7 @@ impl Display for UserMusicDetail {
|
||||
2 => "Full Sync+",
|
||||
3 => "Full Sync DX",
|
||||
4 => "Full Sync DX+",
|
||||
5 => "SYNC", // 一起玩过
|
||||
_ => "未知",
|
||||
}
|
||||
))?;
|
||||
|
||||
Reference in New Issue
Block a user