mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Merge pull request #4074 from smoogipoo/diffcalc-save-last-strain
Fix final strain section not being saved
This commit is contained in:
@ -57,6 +57,10 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
|||||||
s.Process(h);
|
s.Process(h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The peak strain will not be saved for the last section in the above loop
|
||||||
|
foreach (Skill s in skills)
|
||||||
|
s.SaveCurrentPeak();
|
||||||
|
|
||||||
double aimRating = Math.Sqrt(skills[0].DifficultyValue()) * difficulty_multiplier;
|
double aimRating = Math.Sqrt(skills[0].DifficultyValue()) * difficulty_multiplier;
|
||||||
double speedRating = Math.Sqrt(skills[1].DifficultyValue()) * difficulty_multiplier;
|
double speedRating = Math.Sqrt(skills[1].DifficultyValue()) * difficulty_multiplier;
|
||||||
double starRating = aimRating + speedRating + Math.Abs(aimRating - speedRating) / 2;
|
double starRating = aimRating + speedRating + Math.Abs(aimRating - speedRating) / 2;
|
||||||
|
Reference in New Issue
Block a user