Skip to content

Commit

Permalink
Merge pull request #26935 from bdach/new-mods-for-pp
Browse files Browse the repository at this point in the history
Allow a few new mods and mod settings for pp
  • Loading branch information
peppy committed Feb 6, 2024
2 parents c18cd65 + 8df593a commit d784934
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions osu.Game.Rulesets.Osu/Mods/OsuModBlinds.cs
Expand Up @@ -31,6 +31,7 @@ public partial class OsuModBlinds : Mod, IApplicableToDrawableRuleset<OsuHitObje

public override double ScoreMultiplier => UsesDefaultConfiguration ? 1.12 : 1;
public override Type[] IncompatibleMods => new[] { typeof(OsuModFlashlight) };
public override bool Ranked => true;

private DrawableOsuBlinds blinds = null!;

Expand Down
2 changes: 2 additions & 0 deletions osu.Game/Rulesets/Mods/ModAccuracyChallenge.cs
Expand Up @@ -31,6 +31,8 @@ public class ModAccuracyChallenge : ModFailCondition, IApplicableToScoreProcesso

public override bool RequiresConfiguration => false;

public override bool Ranked => true;

public override string SettingDescription => base.SettingDescription.Replace(MinimumAccuracy.ToString(), MinimumAccuracy.Value.ToString("##%", NumberFormatInfo.InvariantInfo));

[SettingSource("Minimum accuracy", "Trigger a failure if your accuracy goes below this value.", SettingControlType = typeof(SettingsPercentageSlider<double>))]
Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Rulesets/Mods/ModDoubleTime.cs
Expand Up @@ -18,7 +18,7 @@ public abstract class ModDoubleTime : ModRateAdjust
public override IconUsage? Icon => OsuIcon.ModDoubleTime;
public override ModType Type => ModType.DifficultyIncrease;
public override LocalisableString Description => "Zoooooooooom...";
public override bool Ranked => UsesDefaultConfiguration;
public override bool Ranked => SpeedChange.IsDefault;

[SettingSource("Speed increase", "The actual increase to apply", SettingControlType = typeof(MultiplierSettingsSlider))]
public override BindableNumber<double> SpeedChange { get; } = new BindableDouble(1.5)
Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Rulesets/Mods/ModHalfTime.cs
Expand Up @@ -18,7 +18,7 @@ public abstract class ModHalfTime : ModRateAdjust
public override IconUsage? Icon => OsuIcon.ModHalftime;
public override ModType Type => ModType.DifficultyReduction;
public override LocalisableString Description => "Less zoom...";
public override bool Ranked => UsesDefaultConfiguration;
public override bool Ranked => SpeedChange.IsDefault;

[SettingSource("Speed decrease", "The actual decrease to apply", SettingControlType = typeof(MultiplierSettingsSlider))]
public override BindableNumber<double> SpeedChange { get; } = new BindableDouble(0.75)
Expand Down
1 change: 1 addition & 0 deletions osu.Game/Rulesets/Mods/ModNoScope.cs
Expand Up @@ -22,6 +22,7 @@ public abstract class ModNoScope : Mod, IApplicableToScoreProcessor, IApplicable
public override ModType Type => ModType.Fun;
public override IconUsage? Icon => FontAwesome.Solid.EyeSlash;
public override double ScoreMultiplier => 1;
public override bool Ranked => true;

/// <summary>
/// Slightly higher than the cutoff for <see cref="Drawable.IsPresent"/>.
Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Rulesets/Mods/ModPerfect.cs
Expand Up @@ -19,7 +19,7 @@ public abstract class ModPerfect : ModFailCondition
public override ModType Type => ModType.DifficultyIncrease;
public override double ScoreMultiplier => 1;
public override LocalisableString Description => "SS or quit.";
public override bool Ranked => UsesDefaultConfiguration;
public override bool Ranked => true;

public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(ModSuddenDeath), typeof(ModAccuracyChallenge) }).ToArray();

Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Rulesets/Mods/ModSuddenDeath.cs
Expand Up @@ -19,7 +19,7 @@ public abstract class ModSuddenDeath : ModFailCondition
public override ModType Type => ModType.DifficultyIncrease;
public override LocalisableString Description => "Miss and fail.";
public override double ScoreMultiplier => 1;
public override bool Ranked => UsesDefaultConfiguration;
public override bool Ranked => true;

public override Type[] IncompatibleMods => base.IncompatibleMods.Append(typeof(ModPerfect)).ToArray();

Expand Down

0 comments on commit d784934

Please sign in to comment.