1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 05:42:56 +08:00

fix spinners not increasing cumulative strain time (#31525)

Co-authored-by: StanR <hi@stanr.info>
This commit is contained in:
molneya 2025-01-16 17:08:47 +08:00 committed by GitHub
parent 0a21183e54
commit 974fa76987
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,12 +52,12 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Evaluators
var currentObj = (OsuDifficultyHitObject)current.Previous(i);
var currentHitObject = (OsuHitObject)(currentObj.BaseObject);
cumulativeStrainTime += lastObj.StrainTime;
if (!(currentObj.BaseObject is Spinner))
{
double jumpDistance = (osuHitObject.StackedPosition - currentHitObject.StackedEndPosition).Length;
cumulativeStrainTime += lastObj.StrainTime;
// We want to nerf objects that can be easily seen within the Flashlight circle radius.
if (i == 0)
smallDistNerf = Math.Min(1.0, jumpDistance / 75.0);