mirror of https://github.com/ppy/osu
Rename UpdateJudgement -> OnNewJugement + rename judgement parameter.
This commit is contained in:
parent
59ba497952
commit
2a6da0751d
|
@ -19,7 +19,7 @@ public CatchScoreProcessor(HitRenderer<CatchBaseHit, CatchJudgement> hitRenderer
|
|||
{
|
||||
}
|
||||
|
||||
protected override void UpdateCalculations(CatchJudgement newJudgement)
|
||||
protected override void OnNewJugement(CatchJudgement judgement)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ public ManiaScoreProcessor(HitRenderer<ManiaBaseHit, ManiaJudgement> hitRenderer
|
|||
{
|
||||
}
|
||||
|
||||
protected override void UpdateCalculations(ManiaJudgement newJudgement)
|
||||
protected override void OnNewJugement(ManiaJudgement judgement)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ protected override void Reset()
|
|||
Accuracy.Value = 1;
|
||||
}
|
||||
|
||||
protected override void UpdateCalculations(OsuJudgement judgement)
|
||||
protected override void OnNewJugement(OsuJudgement judgement)
|
||||
{
|
||||
if (judgement != null)
|
||||
{
|
||||
|
|
|
@ -179,21 +179,21 @@ protected override void ComputeTargets(Beatmap<TaikoHitObject> beatmap)
|
|||
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 @@ protected override void UpdateCalculations(TaikoJudgement newJudgement)
|
|||
}
|
||||
|
||||
// Apply HP changes
|
||||
switch (newJudgement.Result)
|
||||
switch (judgement.Result)
|
||||
{
|
||||
case HitResult.Miss:
|
||||
// Missing ticks shouldn't drop HP
|
||||
|
@ -220,7 +220,7 @@ protected override void UpdateCalculations(TaikoJudgement newJudgement)
|
|||
Health.Value += hpIncreaseMiss;
|
||||
break;
|
||||
case HitResult.Hit:
|
||||
switch (newJudgement.TaikoResult)
|
||||
switch (judgement.TaikoResult)
|
||||
{
|
||||
case TaikoHitResult.Good:
|
||||
Health.Value += hpIncreaseGood;
|
||||
|
|
|
@ -143,7 +143,7 @@ protected void AddJudgement(TJudgement judgement)
|
|||
{
|
||||
Judgements.Add(judgement);
|
||||
|
||||
UpdateCalculations(judgement);
|
||||
OnNewJugement(judgement);
|
||||
|
||||
judgement.ComboAtHit = (ulong)Combo.Value;
|
||||
|
||||
|
@ -158,7 +158,7 @@ protected override void Reset()
|
|||
/// <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