mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:52:55 +08:00
Invert order of operations
This commit is contained in:
parent
035d0d5c9c
commit
4d14467d95
@ -29,15 +29,15 @@ namespace osu.Game.Rulesets.Taiko.Scoring
|
|||||||
protected override void AddScoreChange(JudgementResult result)
|
protected override void AddScoreChange(JudgementResult result)
|
||||||
{
|
{
|
||||||
var change = computeScoreChange(result);
|
var change = computeScoreChange(result);
|
||||||
BonusPortion += change.bonus;
|
|
||||||
ComboPortion += change.combo;
|
ComboPortion += change.combo;
|
||||||
|
BonusPortion += change.bonus;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void RemoveScoreChange(JudgementResult result)
|
protected override void RemoveScoreChange(JudgementResult result)
|
||||||
{
|
{
|
||||||
var change = computeScoreChange(result);
|
var change = computeScoreChange(result);
|
||||||
BonusPortion -= change.bonus;
|
|
||||||
ComboPortion -= change.combo;
|
ComboPortion -= change.combo;
|
||||||
|
BonusPortion -= change.bonus;
|
||||||
}
|
}
|
||||||
|
|
||||||
private (double combo, double bonus) computeScoreChange(JudgementResult result)
|
private (double combo, double bonus) computeScoreChange(JudgementResult result)
|
||||||
|
Loading…
Reference in New Issue
Block a user