Match HP drain harshness closer to stable

Based on number of misses before fail on two arbitrary tests. Obviously not final, just making the game more playable for the time being.
This commit is contained in:
Dean Herbert 2018-03-07 19:37:26 +09:00
parent fbe8641ec4
commit 04f5563238
1 changed files with 6 additions and 4 deletions

View File

@ -68,6 +68,8 @@ public override void PopulateScore(Score score)
score.Statistics[HitResult.Miss] = scoreResultCounts.GetOrDefault(HitResult.Miss); score.Statistics[HitResult.Miss] = scoreResultCounts.GetOrDefault(HitResult.Miss);
} }
private const double harshness = 0.01;
protected override void OnNewJudgement(Judgement judgement) protected override void OnNewJudgement(Judgement judgement)
{ {
base.OnNewJudgement(judgement); base.OnNewJudgement(judgement);
@ -83,15 +85,15 @@ protected override void OnNewJudgement(Judgement judgement)
switch (judgement.Result) switch (judgement.Result)
{ {
case HitResult.Great: case HitResult.Great:
Health.Value += (10.2 - hpDrainRate) * 0.02; Health.Value += (10.2 - hpDrainRate) * harshness;
break; break;
case HitResult.Good: case HitResult.Good:
Health.Value += (8 - hpDrainRate) * 0.02; Health.Value += (8 - hpDrainRate) * harshness;
break; break;
case HitResult.Meh: case HitResult.Meh:
Health.Value += (4 - hpDrainRate) * 0.02; Health.Value += (4 - hpDrainRate) * harshness;
break; break;
/*case HitResult.SliderTick: /*case HitResult.SliderTick:
@ -99,7 +101,7 @@ protected override void OnNewJudgement(Judgement judgement)
break;*/ break;*/
case HitResult.Miss: case HitResult.Miss:
Health.Value -= hpDrainRate * 0.04; Health.Value -= hpDrainRate * (harshness * 2);
break; break;
} }
} }