mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Rename UpdateJudgement -> OnNewJugement + rename judgement parameter.
This commit is contained in:
parent
59ba497952
commit
2a6da0751d
@ -19,7 +19,7 @@ namespace osu.Game.Modes.Catch.Scoring
|
||||
{
|
||||
}
|
||||
|
||||
protected override void UpdateCalculations(CatchJudgement newJudgement)
|
||||
protected override void OnNewJugement(CatchJudgement judgement)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Modes.Mania.Scoring
|
||||
{
|
||||
}
|
||||
|
||||
protected override void UpdateCalculations(ManiaJudgement newJudgement)
|
||||
protected override void OnNewJugement(ManiaJudgement judgement)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ namespace osu.Game.Modes.Osu.Scoring
|
||||
Accuracy.Value = 1;
|
||||
}
|
||||
|
||||
protected override void UpdateCalculations(OsuJudgement judgement)
|
||||
protected override void OnNewJugement(OsuJudgement judgement)
|
||||
{
|
||||
if (judgement != null)
|
||||
{
|
||||
|
@ -179,21 +179,21 @@ namespace osu.Game.Modes.Taiko.Scoring
|
||||
maxComboPortion = comboPortion;
|
||||
}
|
||||
|
||||
protected override void UpdateCalculations(TaikoJudgement newJudgement)
|
||||
protected override void OnNewJugement(TaikoJudgement judgement)
|
||||
{
|
||||
bool isTick = newJudgement is TaikoDrumRollTickJudgement;
|
||||
bool isTick = judgement is TaikoDrumRollTickJudgement;
|
||||
|
||||
// Don't consider ticks as a type of hit that counts towards map completion
|
||||
if (!isTick)
|
||||
totalHits++;
|
||||
|
||||
// Apply score changes
|
||||
if (newJudgement.Result == HitResult.Hit)
|
||||
if (judgement.Result == HitResult.Hit)
|
||||
{
|
||||
double baseValue = newJudgement.ResultValueForScore;
|
||||
double baseValue = judgement.ResultValueForScore;
|
||||
|
||||
// Add bonus points for hitting an accented hit object with the second key
|
||||
if (newJudgement.SecondHit)
|
||||
if (judgement.SecondHit)
|
||||
baseValue += baseValue * accentedHitScale;
|
||||
|
||||
// Add score to portions
|
||||
@ -212,7 +212,7 @@ namespace osu.Game.Modes.Taiko.Scoring
|
||||
}
|
||||
|
||||
// Apply HP changes
|
||||
switch (newJudgement.Result)
|
||||
switch (judgement.Result)
|
||||
{
|
||||
case HitResult.Miss:
|
||||
// Missing ticks shouldn't drop HP
|
||||
@ -220,7 +220,7 @@ namespace osu.Game.Modes.Taiko.Scoring
|
||||
Health.Value += hpIncreaseMiss;
|
||||
break;
|
||||
case HitResult.Hit:
|
||||
switch (newJudgement.TaikoResult)
|
||||
switch (judgement.TaikoResult)
|
||||
{
|
||||
case TaikoHitResult.Good:
|
||||
Health.Value += hpIncreaseGood;
|
||||
|
@ -143,7 +143,7 @@ namespace osu.Game.Modes.Scoring
|
||||
{
|
||||
Judgements.Add(judgement);
|
||||
|
||||
UpdateCalculations(judgement);
|
||||
OnNewJugement(judgement);
|
||||
|
||||
judgement.ComboAtHit = (ulong)Combo.Value;
|
||||
|
||||
@ -158,7 +158,7 @@ namespace osu.Game.Modes.Scoring
|
||||
/// <summary>
|
||||
/// Update any values that potentially need post-processing on a judgement change.
|
||||
/// </summary>
|
||||
/// <param name="newJudgement">A new Judgement that triggered this calculation. May be null.</param>
|
||||
protected abstract void UpdateCalculations(TJudgement newJudgement);
|
||||
/// <param name="judgement">The judgement that triggered this calculation.</param>
|
||||
protected abstract void OnNewJugement(TJudgement judgement);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user