mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Rename parameters
This commit is contained in:
parent
6c6f8621c1
commit
30a296bd09
@ -26,13 +26,13 @@ namespace osu.Game.Rulesets.Catch.Scoring
|
||||
{
|
||||
}
|
||||
|
||||
protected override double ComputeTotalScore(double comboRatio, double accuracyRatio, double bonusPortion)
|
||||
protected override double ComputeTotalScore(double comboProgress, double accuracyProgress, double bonusPortion)
|
||||
{
|
||||
double fruitHitsRatio = maximumTinyDroplets == 0 ? 0 : (double)hitTinyDroplets / maximumTinyDroplets;
|
||||
|
||||
const int tiny_droplets_portion = 400000;
|
||||
|
||||
return ((1000000 - tiny_droplets_portion) + tiny_droplets_portion * (1 - tinyDropletScale)) * comboRatio
|
||||
return ((1000000 - tiny_droplets_portion) + tiny_droplets_portion * (1 - tinyDropletScale)) * comboProgress
|
||||
+ tiny_droplets_portion * tinyDropletScale * fruitHitsRatio
|
||||
+ bonusPortion;
|
||||
}
|
||||
|
@ -16,10 +16,10 @@ namespace osu.Game.Rulesets.Mania.Scoring
|
||||
{
|
||||
}
|
||||
|
||||
protected override double ComputeTotalScore(double comboRatio, double accuracyRatio, double bonusPortion)
|
||||
protected override double ComputeTotalScore(double comboProgress, double accuracyProgress, double bonusPortion)
|
||||
{
|
||||
return 200000 * comboRatio
|
||||
+ 800000 * Math.Pow(Accuracy.Value, 2 + 2 * Accuracy.Value) * accuracyRatio
|
||||
return 200000 * comboProgress
|
||||
+ 800000 * Math.Pow(Accuracy.Value, 2 + 2 * Accuracy.Value) * accuracyProgress
|
||||
+ bonusPortion;
|
||||
}
|
||||
|
||||
|
@ -13,10 +13,10 @@ namespace osu.Game.Rulesets.Osu.Scoring
|
||||
{
|
||||
}
|
||||
|
||||
protected override double ComputeTotalScore(double comboRatio, double accuracyRatio, double bonusPortion)
|
||||
protected override double ComputeTotalScore(double comboProgress, double accuracyProgress, double bonusPortion)
|
||||
{
|
||||
return 700000 * comboRatio
|
||||
+ 300000 * Math.Pow(Accuracy.Value, 10) * accuracyRatio
|
||||
return 700000 * comboProgress
|
||||
+ 300000 * Math.Pow(Accuracy.Value, 10) * accuracyProgress
|
||||
+ bonusPortion;
|
||||
}
|
||||
}
|
||||
|
@ -17,10 +17,10 @@ namespace osu.Game.Rulesets.Taiko.Scoring
|
||||
{
|
||||
}
|
||||
|
||||
protected override double ComputeTotalScore(double comboRatio, double accuracyRatio, double bonusPortion)
|
||||
protected override double ComputeTotalScore(double comboProgress, double accuracyProgress, double bonusPortion)
|
||||
{
|
||||
return 250000 * comboRatio
|
||||
+ 750000 * Math.Pow(Accuracy.Value, 3.6) * accuracyRatio
|
||||
return 250000 * comboProgress
|
||||
+ 750000 * Math.Pow(Accuracy.Value, 3.6) * accuracyProgress
|
||||
+ bonusPortion;
|
||||
}
|
||||
|
||||
|
@ -296,13 +296,13 @@ namespace osu.Game.Rulesets.Scoring
|
||||
TotalScore.Value = (long)Math.Round(ComputeTotalScore(comboRatio, accuracyRatio, currentBonusPortion) * scoreMultiplier);
|
||||
}
|
||||
|
||||
protected virtual double ComputeTotalScore(double comboRatio, double accuracyRatio, double bonusPortion)
|
||||
protected virtual double ComputeTotalScore(double comboProgress, double accuracyProgress, double bonusPortion)
|
||||
{
|
||||
return
|
||||
(int)Math.Round
|
||||
((
|
||||
700000 * comboRatio +
|
||||
300000 * Math.Pow(Accuracy.Value, 10) * accuracyRatio +
|
||||
700000 * comboProgress +
|
||||
300000 * Math.Pow(Accuracy.Value, 10) * accuracyProgress +
|
||||
bonusPortion
|
||||
) * scoreMultiplier);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user