1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Code quality improvements

This commit is contained in:
Dylan Nantz 2022-12-20 13:33:33 -05:00
parent 42dbb0bfd0
commit 4a1a023f9e
3 changed files with 5 additions and 4 deletions

View File

@ -14,6 +14,6 @@ namespace osu.Game.Rulesets.Mania.Tests.Mods
[TestCase(0.5f)]
[TestCase(0.2f)]
[TestCase(0.8f)]
public void TestCoverage(float Coverage) => CreateModTest(new ModTestData { Mod = new ManiaModHidden { CoverageAmount = { Value = Coverage } }, PassCondition = () => true });
public void TestCoverage(float coverage) => CreateModTest(new ModTestData { Mod = new ManiaModHidden { CoverageAmount = { Value = coverage } }, PassCondition = () => true });
}
}

View File

@ -15,7 +15,7 @@ namespace osu.Game.Rulesets.Mania.Mods
public override LocalisableString Description => @"Keys fade out before you hit them!";
public override double ScoreMultiplier => 1;
[SettingSource("Coverage", "How much of the playfield notes should be hidden for.")]
[SettingSource("Coverage", "The proportion of playfield height that notes will be hidden for.")]
public BindableNumber<float> CoverageAmount { get; } = new BindableFloat(0.5f)
{
Precision = 0.01f,
@ -23,7 +23,8 @@ namespace osu.Game.Rulesets.Mania.Mods
MaxValue = 0.8f,
Default = 0.5f,
};
public override float Coverage => CoverageAmount.Value;
protected override float Coverage => CoverageAmount.Value;
public override Type[] IncompatibleMods => base.IncompatibleMods.Append(typeof(ManiaModFadeIn)).ToArray();

View File

@ -22,7 +22,7 @@ namespace osu.Game.Rulesets.Mania.Mods
/// </summary>
protected abstract CoverExpandDirection ExpandDirection { get; }
public virtual float Coverage { get => 0.5f; }
protected virtual float Coverage => 0.5f;
public virtual void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRuleset)
{