mirror of https://github.com/ppy/osu
Implement hp increase for taiko
This commit is contained in:
parent
4c5f41e40f
commit
b59f23d094
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue