1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 19:27:24 +08:00
osu-lazer/osu.Game.Rulesets.Osu
Bartłomiej Dach 5c6cd879dd
Adjust slider calculations to new method API
Code originally read

	Velocity = scoringDistance / beatLength
		 = BASE_SCORING_DISTANCE * SliderMultiplier * GetPrecisionAdjustedSliderVelocityMultiplier() / beatLength

Given (mathematically, floats are not generally as forgiving):

	GetPrecisionAdjustedBeatLength() = beatLength / GetPrecisionAdjustedSliderVelocityMultiplier()

it follows that (inverting both sides):

	1 / GetPrecisionAdjustedBeatLength() = GetPrecisionAdjustedSliderVelocityMultiplier() / beatLength

and therefore

	Velocity = BASE_SCORING_DISTANCE * SliderMultiplier * GetPrecisionAdjustedSliderVelocityMultiplier() / beatLength
		 = BASE_SCORING_DISTANCE * SliderMultiplier / GetPrecisionAdjustedBeatLength()

and to recover `scoringDistance`

	scoringDistance = Velocity * beatLength
2023-09-15 12:30:25 +02:00
..
Beatmaps Rename SliderVelocity to SliderVelocityMultiplier to distinguish from Velocity 2023-09-06 19:01:08 +09:00
Configuration Add basic structural requirements for cursor ripples 2023-04-30 14:48:03 +09:00
Difficulty ILegacyScoreProcessor -> ILegacyScoreSimulator 2023-07-04 17:32:54 +09:00
Edit Rename SliderVelocity to SliderVelocityMultiplier to distinguish from Velocity 2023-09-06 19:01:08 +09:00
Judgements Automated pass 2023-06-24 01:00:03 +09:00
Mods Block input to objects lying under already-hit slider heads before slider is fully judged when classic note lock is active 2023-09-08 13:42:18 +02:00
Objects Adjust slider calculations to new method API 2023-09-15 12:30:25 +02:00
Properties Automated pass 2023-06-24 01:00:03 +09:00
Replays Use new ArgumentNullException.ThrowIfNull throw-helper API 2022-12-22 21:27:59 +01:00
Resources/Testing/Beatmaps Manually reorder objects in expected mapping 2023-09-15 12:07:59 +02:00
Scoring Add back required override to make AccuracyHeatmap work 2023-06-01 13:26:47 +09:00
Skinning Update SmokeSegment in line with framework vertex changes 2023-08-17 18:12:04 +09:00
Statistics Adjust metrics of AccuracyHeatmap 2023-07-13 18:30:57 +09:00
UI Revert masking SSBO changes 2023-09-13 23:10:13 +09:00
Utils Automated pass 2023-06-24 01:00:03 +09:00
osu.Game.Rulesets.Osu.csproj Update language version 2023-02-25 02:15:56 +09:00
OsuInputManager.cs Add note about CheckScreenSpaceActionPresJudgeable being naive 2023-01-25 15:03:47 +09:00
OsuRuleset.cs Merge branch 'master' into results-screen-component-metrics 2023-07-13 19:53:52 +02:00
OsuSkinComponentLookup.cs Add "Component" prefix to lookup naming 2022-11-09 17:46:43 +09:00
OsuSkinComponents.cs Implement ripples (legacy and default) 2023-04-30 14:48:03 +09:00