mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
Use more accurate accuracy from 100s and 50s
This commit is contained in:
parent
ce4ed285f9
commit
3a89c009da
4 changed files with 26 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
use crate::{
|
||||
discord::beatmap_cache::BeatmapMetaCache,
|
||||
discord::oppai_cache::BeatmapCache,
|
||||
discord::oppai_cache::{BeatmapCache, OppaiAccuracy},
|
||||
models::{Beatmap, Mode, Mods, Score, User},
|
||||
request::UserID,
|
||||
Client as OsuHttpClient,
|
||||
|
@ -384,7 +384,10 @@ async fn list_plays<'a>(
|
|||
max_combo: p.max_combo as u32,
|
||||
misses: p.count_miss as u32,
|
||||
},
|
||||
p.accuracy(mode) as f32,
|
||||
OppaiAccuracy::from_hits(
|
||||
p.count_100 as u32,
|
||||
p.count_50 as u32,
|
||||
),
|
||||
Some(op),
|
||||
p.mods,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue