mirror of
https://github.com/osukey/osukey.git
synced 2025-06-20 18:58:05 +09:00
Merge pull request #15409 from smoogipoo/fix-pp-counter-rate-adjust
Fix PP counter showing incorrect values with rate adjustment mods
This commit is contained in:
commit
73b09f3b3d
@ -58,6 +58,11 @@ namespace osu.Game.Rulesets.Difficulty
|
|||||||
return CreateDifficultyAttributes(Beatmap, playableMods, skills, clockRate);
|
return CreateDifficultyAttributes(Beatmap, playableMods, skills, clockRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Calculates the difficulty of the beatmap and returns a set of <see cref="TimedDifficultyAttributes"/> representing the difficulty at every relevant time value in the beatmap.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="mods">The mods that should be applied to the beatmap.</param>
|
||||||
|
/// <returns>The set of <see cref="TimedDifficultyAttributes"/>.</returns>
|
||||||
public List<TimedDifficultyAttributes> CalculateTimed(params Mod[] mods)
|
public List<TimedDifficultyAttributes> CalculateTimed(params Mod[] mods)
|
||||||
{
|
{
|
||||||
preProcess(mods);
|
preProcess(mods);
|
||||||
@ -77,7 +82,7 @@ namespace osu.Game.Rulesets.Difficulty
|
|||||||
foreach (var skill in skills)
|
foreach (var skill in skills)
|
||||||
skill.ProcessInternal(hitObject);
|
skill.ProcessInternal(hitObject);
|
||||||
|
|
||||||
attribs.Add(new TimedDifficultyAttributes(hitObject.EndTime, CreateDifficultyAttributes(progressiveBeatmap, playableMods, skills, clockRate)));
|
attribs.Add(new TimedDifficultyAttributes(hitObject.EndTime * clockRate, CreateDifficultyAttributes(progressiveBeatmap, playableMods, skills, clockRate)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return attribs;
|
return attribs;
|
||||||
|
@ -11,9 +11,21 @@ namespace osu.Game.Rulesets.Difficulty
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class TimedDifficultyAttributes : IComparable<TimedDifficultyAttributes>
|
public class TimedDifficultyAttributes : IComparable<TimedDifficultyAttributes>
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The non-clock-adjusted time value at which the attributes take effect.
|
||||||
|
/// </summary>
|
||||||
public readonly double Time;
|
public readonly double Time;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The attributes.
|
||||||
|
/// </summary>
|
||||||
public readonly DifficultyAttributes Attributes;
|
public readonly DifficultyAttributes Attributes;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Creates new <see cref="TimedDifficultyAttributes"/>.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="time">The non-clock-adjusted time value at which the attributes take effect.</param>
|
||||||
|
/// <param name="attributes">The attributes.</param>
|
||||||
public TimedDifficultyAttributes(double time, DifficultyAttributes attributes)
|
public TimedDifficultyAttributes(double time, DifficultyAttributes attributes)
|
||||||
{
|
{
|
||||||
Time = time;
|
Time = time;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user