Implement hp increase for taiko

This commit is contained in:
smoogipoo 2019-04-22 17:04:46 +09:00
parent 4c5f41e40f
commit b59f23d094
1 changed files with 2 additions and 13 deletions

View File

@ -46,19 +46,8 @@ protected override void ApplyBeatmap(Beatmap<TaikoHitObject> beatmap)
hpMissMultiplier = BeatmapDifficulty.DifficultyRange(beatmap.BeatmapInfo.BaseDifficulty.DrainRate, 0.0018, 0.0075, 0.0120);
}
protected override void ApplyResult(JudgementResult result)
{
base.ApplyResult(result);
double hpIncrease = result.Judgement.HealthIncreaseFor(result);
if (result.Type == HitResult.Miss)
hpIncrease *= hpMissMultiplier;
else
hpIncrease *= hpMultiplier;
Health.Value += hpIncrease;
}
protected override double HpFactorFor(Judgement judgement, HitResult result)
=> result == HitResult.Miss ? hpMissMultiplier : hpMultiplier;
protected override void Reset(bool storeResults)
{