Tweak drain values

This commit is contained in:
smoogipoo 2019-12-25 19:19:57 +09:00
parent 522847987b
commit 90a0569660
2 changed files with 12 additions and 3 deletions

View File

@ -8,6 +8,11 @@ namespace osu.Game.Rulesets.Osu.Judgements
{
public class OsuJudgement : Judgement
{
/// <summary>
/// The health increase for a maximum judgement result.
/// </summary>
protected const double MAX_HEALTH_INCREASE = 0.05;
public override HitResult MaxResult => HitResult.Great;
protected override int NumericResultFor(HitResult result)
@ -33,12 +38,16 @@ protected override double HealthIncreaseFor(HitResult result)
switch (result)
{
case HitResult.Miss:
return -0.02;
return -MAX_HEALTH_INCREASE;
case HitResult.Meh:
return -MAX_HEALTH_INCREASE * 0.05;
case HitResult.Good:
return MAX_HEALTH_INCREASE * 0.3;
case HitResult.Great:
return 0.01;
return MAX_HEALTH_INCREASE;
default:
return 0;

View File

@ -57,7 +57,7 @@ public override void ApplyBeatmap(IBeatmap beatmap)
this.beatmap = beatmap;
healthIncreases = new List<(double time, double health)>();
targetMinimumHealth = BeatmapDifficulty.DifficultyRange(beatmap.BeatmapInfo.BaseDifficulty.DrainRate, 0.95, 0.6, 0.2);
targetMinimumHealth = BeatmapDifficulty.DifficultyRange(beatmap.BeatmapInfo.BaseDifficulty.DrainRate, 0.95, 0.70, 0.30);
base.ApplyBeatmap(beatmap);