mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Implement hp increase for taiko
This commit is contained in:
@ -46,19 +46,8 @@ namespace osu.Game.Rulesets.Taiko.Scoring
|
|||||||
hpMissMultiplier = BeatmapDifficulty.DifficultyRange(beatmap.BeatmapInfo.BaseDifficulty.DrainRate, 0.0018, 0.0075, 0.0120);
|
hpMissMultiplier = BeatmapDifficulty.DifficultyRange(beatmap.BeatmapInfo.BaseDifficulty.DrainRate, 0.0018, 0.0075, 0.0120);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void ApplyResult(JudgementResult result)
|
protected override double HpFactorFor(Judgement judgement, HitResult result)
|
||||||
{
|
=> result == HitResult.Miss ? hpMissMultiplier : hpMultiplier;
|
||||||
base.ApplyResult(result);
|
|
||||||
|
|
||||||
double hpIncrease = result.Judgement.HealthIncreaseFor(result);
|
|
||||||
|
|
||||||
if (result.Type == HitResult.Miss)
|
|
||||||
hpIncrease *= hpMissMultiplier;
|
|
||||||
else
|
|
||||||
hpIncrease *= hpMultiplier;
|
|
||||||
|
|
||||||
Health.Value += hpIncrease;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Reset(bool storeResults)
|
protected override void Reset(bool storeResults)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user