1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 15:10:28 +08:00
Files
osu-lazer/osu.Game.Rulesets.Taiko/Difficulty/TaikoPerformanceAttributes.cs
T
Eloise 803e30f50f osu!taiko consistency factor changes using object strains (#34327)
* Calculate consistency factor from object strains

* Use `totalDifficultHits` in performance calc

---------

Co-authored-by: James Wilson <tsunyoku@gmail.com>
2025-07-28 13:58:54 +00:00

31 lines
1.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.Taiko.Difficulty
{
public class TaikoPerformanceAttributes : PerformanceAttributes
{
[JsonProperty("difficulty")]
public double Difficulty { get; set; }
[JsonProperty("accuracy")]
public double Accuracy { get; set; }
[JsonProperty("estimated_unstable_rate")]
public double? EstimatedUnstableRate { get; set; }
public override IEnumerable<PerformanceDisplayAttribute> GetAttributesForDisplay()
{
foreach (var attribute in base.GetAttributesForDisplay())
yield return attribute;
yield return new PerformanceDisplayAttribute(nameof(Difficulty), "Difficulty", Difficulty);
yield return new PerformanceDisplayAttribute(nameof(Accuracy), "Accuracy", Accuracy);
}
}
}