1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00

Change div to subtraction to fix calculation

This commit is contained in:
Dean Herbert 2020-07-24 22:09:25 +09:00
parent dd45f0bd40
commit a6a7961af9

View File

@ -35,15 +35,18 @@ namespace osu.Game.Rulesets.Osu.Objects
{ {
base.ApplyDefaultsToSelf(controlPointInfo, difficulty); base.ApplyDefaultsToSelf(controlPointInfo, difficulty);
// spinning doesn't match 1:1 with stable, so let's fudge them easier for the time being.
const double stable_matching_fudge = 0.6;
// close to 477rpm
const double maximum_rotations_per_second = 8;
double secondsDuration = Duration / 1000; double secondsDuration = Duration / 1000;
// spinning doesn't match 1:1 with stable, so let's fudge them easier for the time being. double minimumRotationsPerSecond = stable_matching_fudge * BeatmapDifficulty.DifficultyRange(difficulty.OverallDifficulty, 3, 5, 7.5);
double minimumRotationsPerSecond = 0.6 * BeatmapDifficulty.DifficultyRange(difficulty.OverallDifficulty, 3, 5, 7.5);
const double maximum_rotations_per_second = 8; // close to 477rpm.
SpinsRequired = (int)Math.Max(1, (secondsDuration * minimumRotationsPerSecond)); SpinsRequired = (int)Math.Max(1, (secondsDuration * minimumRotationsPerSecond));
MaximumBonusSpins = (int)(maximum_rotations_per_second / minimumRotationsPerSecond * secondsDuration); MaximumBonusSpins = (int)((maximum_rotations_per_second - minimumRotationsPerSecond) * secondsDuration);
} }
protected override void CreateNestedHitObjects() protected override void CreateNestedHitObjects()