1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 09:42:54 +08:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Jay Lawton
e0622cdf77
Merge 9ac0f025f5 into be05f2a1c2 2024-12-03 16:58:59 +09:00
Jay Lawton
9ac0f025f5 revert incompat changes 2024-11-13 16:16:20 +10:00
Jay Lawton
1162448736 Fix missing entries in IncompatibleMods 2024-11-12 21:33:32 +10:00
Jay Lawton
955a2dbe91 make Relax incompatible with Swap and Random 2024-11-12 20:20:35 +10:00
Jay Lawton
c754574865 isRelax bool 2024-11-12 20:16:41 +10:00

View File

@ -77,6 +77,8 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
if (beatmap.HitObjects.Count == 0) if (beatmap.HitObjects.Count == 0)
return new TaikoDifficultyAttributes { Mods = mods }; return new TaikoDifficultyAttributes { Mods = mods };
bool isRelax = mods.Any(h => h is TaikoModRelax);
Colour colour = (Colour)skills.First(x => x is Colour); Colour colour = (Colour)skills.First(x => x is Colour);
Rhythm rhythm = (Rhythm)skills.First(x => x is Rhythm); Rhythm rhythm = (Rhythm)skills.First(x => x is Rhythm);
Stamina stamina = (Stamina)skills.First(x => x is Stamina); Stamina stamina = (Stamina)skills.First(x => x is Stamina);
@ -88,15 +90,18 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
double monoStaminaRating = singleColourStamina.DifficultyValue() * stamina_skill_multiplier; double monoStaminaRating = singleColourStamina.DifficultyValue() * stamina_skill_multiplier;
double monoStaminaFactor = staminaRating == 0 ? 1 : Math.Pow(monoStaminaRating / staminaRating, 5); double monoStaminaFactor = staminaRating == 0 ? 1 : Math.Pow(monoStaminaRating / staminaRating, 5);
double combinedRating = combinedDifficultyValue(rhythm, colour, stamina); double combinedRating = combinedDifficultyValue(rhythm, colour, stamina, isRelax);
double starRating = rescale(combinedRating * 1.4); double starRating = rescale(combinedRating * 1.4);
// TODO: This is temporary measure as we don't detect abuse of multiple-input playstyles of converts within the current system. // TODO: This is temporary measure as we don't detect abuse of multiple-input playstyles of converts within the current system.
if (beatmap.BeatmapInfo.Ruleset.OnlineID == 0) if (beatmap.BeatmapInfo.Ruleset.OnlineID == 0)
{ {
starRating *= 0.925; starRating *= 0.925;
// For maps with low colour variance and high stamina requirement, multiple inputs are more likely to be abused.
if (colourRating < 2 && staminaRating > 8) // For maps with either relax or low colour variance and high stamina requirement, multiple inputs are more likely to be abused.
if (isRelax)
starRating *= 0.60;
else if (colourRating < 2 && staminaRating > 8)
starRating *= 0.80; starRating *= 0.80;
} }
@ -138,7 +143,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
/// For each section, the peak strains of all separate skills are combined into a single peak strain for the section. /// For each section, the peak strains of all separate skills are combined into a single peak strain for the section.
/// The resulting partial rating of the beatmap is a weighted sum of the combined peaks (higher peaks are weighted more). /// The resulting partial rating of the beatmap is a weighted sum of the combined peaks (higher peaks are weighted more).
/// </remarks> /// </remarks>
private double combinedDifficultyValue(Rhythm rhythm, Colour colour, Stamina stamina) private double combinedDifficultyValue(Rhythm rhythm, Colour colour, Stamina stamina, bool isRelax)
{ {
List<double> peaks = new List<double>(); List<double> peaks = new List<double>();
@ -152,6 +157,12 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
double rhythmPeak = rhythmPeaks[i] * rhythm_skill_multiplier; double rhythmPeak = rhythmPeaks[i] * rhythm_skill_multiplier;
double staminaPeak = staminaPeaks[i] * stamina_skill_multiplier; double staminaPeak = staminaPeaks[i] * stamina_skill_multiplier;
if (isRelax)
{
colourPeak = 0; // There is no colour difficulty in relax.
staminaPeak /= 1.5; // Stamina difficulty is decreased with an increased available finger count.
}
double peak = norm(1.5, colourPeak, staminaPeak); double peak = norm(1.5, colourPeak, staminaPeak);
peak = norm(2, peak, rhythmPeak); peak = norm(2, peak, rhythmPeak);