mirror of
https://github.com/ppy/osu.git
synced 2026-05-19 22:20:48 +08:00
562f1f8004
This PR aims to replace the current bonuses used to award high approach rates and scores made using the Hidden mod with a Reading skill that takes into account each note's reading difficulty separately, Important to note is the fact that as reading difficulty is now a skill the bonuses are now additive instead of multiplicative, meaning there are vast changes in deltas on the high and low end of scores. Due to the nature of adding a new skill new difficulty and performance attributes need to be added. Huis page: [https://pp.huismetbenen.nl/rankings/admin/kwotaq-reading](url) --------- Co-authored-by: apollo-dw <83023433+apollo-dw@users.noreply.github.com> Co-authored-by: js1086 <js1086@student.le.ac.uk> Co-authored-by: tsunyoku <tsunyoku@gmail.com> Co-authored-by: StanR <hi@stanr.info>
58 lines
2.1 KiB
C#
58 lines
2.1 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
using osu.Game.Rulesets.Difficulty;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Difficulty
|
|
{
|
|
public class OsuPerformanceAttributes : PerformanceAttributes
|
|
{
|
|
[JsonProperty("aim")]
|
|
public double Aim { get; set; }
|
|
|
|
[JsonProperty("speed")]
|
|
public double Speed { get; set; }
|
|
|
|
[JsonProperty("accuracy")]
|
|
public double Accuracy { get; set; }
|
|
|
|
[JsonProperty("flashlight")]
|
|
public double Flashlight { get; set; }
|
|
|
|
[JsonProperty("reading")]
|
|
public double Reading { get; set; }
|
|
|
|
[JsonProperty("effective_miss_count")]
|
|
public double EffectiveMissCount { get; set; }
|
|
|
|
[JsonProperty("speed_deviation")]
|
|
public double? SpeedDeviation { get; set; }
|
|
|
|
[JsonProperty("combo_based_estimated_miss_count")]
|
|
public double ComboBasedEstimatedMissCount { get; set; }
|
|
|
|
[JsonProperty("score_based_estimated_miss_count")]
|
|
public double? ScoreBasedEstimatedMissCount { get; set; }
|
|
|
|
[JsonProperty("aim_estimated_slider_breaks")]
|
|
public double AimEstimatedSliderBreaks { get; set; }
|
|
|
|
[JsonProperty("speed_estimated_slider_breaks")]
|
|
public double SpeedEstimatedSliderBreaks { get; set; }
|
|
|
|
public override IEnumerable<PerformanceDisplayAttribute> GetAttributesForDisplay()
|
|
{
|
|
foreach (var attribute in base.GetAttributesForDisplay())
|
|
yield return attribute;
|
|
|
|
yield return new PerformanceDisplayAttribute(nameof(Aim), "Aim", Aim);
|
|
yield return new PerformanceDisplayAttribute(nameof(Speed), "Speed", Speed);
|
|
yield return new PerformanceDisplayAttribute(nameof(Accuracy), "Accuracy", Accuracy);
|
|
yield return new PerformanceDisplayAttribute(nameof(Flashlight), "Flashlight Bonus", Flashlight);
|
|
yield return new PerformanceDisplayAttribute(nameof(Reading), "Reading", Reading);
|
|
}
|
|
}
|
|
}
|