Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Quaver.API/Maps/Processors/Scoring/ScoreProcessorKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,20 @@ public sealed class ScoreProcessorKeys : ScoreProcessor
{Judgement.Miss, -6.0f}
};

/// <summary>
/// Experimental base health weighting used instead of <see cref="JudgementHealthWeighting"/>
/// when <see cref="ModIdentifier.HeatlthAdjust"/> is active.
/// </summary>
private static Dictionary<Judgement, float> ExperimentalHealthWeighting { get; } = new Dictionary<Judgement, float>()
{
{Judgement.Marv, 0.5f},
{Judgement.Perf, 0.4f},
{Judgement.Great, 0.2f},
{Judgement.Good, -1.5f},
{Judgement.Okay, -6.0f},
{Judgement.Miss, -3.0f}
};

/// <inheritdoc />
/// <summary>
/// </summary>
Expand Down Expand Up @@ -355,6 +369,12 @@ protected override void InitializeHealthWeighting()
if (Mods.HasFlag(ModIdentifier.Autoplay))
return;

if (Mods.HasFlag(ModIdentifier.HeatlthAdjust))
{
foreach (var item in ExperimentalHealthWeighting)
JudgementHealthWeighting[item.Key] = item.Value;
}

var density = Map.GetActionsPerSecond(ModHelper.GetRateFromMods(Mods));

// ReSharper disable once CompareOfFloatsByEqualityOperator
Expand Down
Loading