mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 07:32:55 +08:00
Set legacy api score statistics directly
This commit is contained in:
parent
eceecde0f8
commit
d2af2cf21d
@ -74,23 +74,27 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
HitResult newKey;
|
||||
switch (kvp.Key)
|
||||
{
|
||||
case @"count_geki":
|
||||
CountGeki = kvp.Value;
|
||||
break;
|
||||
case @"count_300":
|
||||
newKey = HitResult.Great;
|
||||
Count300 = kvp.Value;
|
||||
break;
|
||||
case @"count_katu":
|
||||
CountKatu = kvp.Value;
|
||||
break;
|
||||
case @"count_100":
|
||||
newKey = HitResult.Good;
|
||||
Count100 = kvp.Value;
|
||||
break;
|
||||
case @"count_50":
|
||||
newKey = HitResult.Meh;
|
||||
Count50 = kvp.Value;
|
||||
break;
|
||||
case @"count_miss":
|
||||
newKey = HitResult.Miss;
|
||||
CountMiss = kvp.Value;
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
|
||||
Statistics.Add(newKey, kvp.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user