mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 18:07:27 +09:00
Remove bindable from ModeMultiplier
This commit is contained in:
parent
ed84ae0ac0
commit
161a2a321e
@ -33,13 +33,9 @@ namespace osu.Game.Rulesets.Catch.Mods
|
|||||||
Precision = 0.1f
|
Precision = 0.1f
|
||||||
};
|
};
|
||||||
|
|
||||||
protected override BindableNumber<float> ModeMultiplier { get; } = new BindableNumber<float>
|
protected override float ModeMultiplier => 350;
|
||||||
{
|
|
||||||
Default = 350,
|
|
||||||
Value = 350,
|
|
||||||
};
|
|
||||||
|
|
||||||
public override Flashlight CreateFlashlight() => new CatchFlashlight(playfield, ChangeRadius.Value, InitialRadius.Value, ModeMultiplier.Value);
|
public override Flashlight CreateFlashlight() => new CatchFlashlight(playfield, ChangeRadius.Value, InitialRadius.Value, ModeMultiplier);
|
||||||
|
|
||||||
private CatchPlayfield playfield;
|
private CatchPlayfield playfield;
|
||||||
|
|
||||||
|
@ -34,13 +34,9 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
Precision = 0.1f
|
Precision = 0.1f
|
||||||
};
|
};
|
||||||
|
|
||||||
protected override BindableNumber<float> ModeMultiplier { get; } = new BindableNumber<float>
|
protected override float ModeMultiplier => 50;
|
||||||
{
|
|
||||||
Default = 50,
|
|
||||||
Value = 50,
|
|
||||||
};
|
|
||||||
|
|
||||||
public override Flashlight CreateFlashlight() => new ManiaFlashlight(ChangeRadius.Value, InitialRadius.Value, ModeMultiplier.Value);
|
public override Flashlight CreateFlashlight() => new ManiaFlashlight(ChangeRadius.Value, InitialRadius.Value, ModeMultiplier);
|
||||||
|
|
||||||
private class ManiaFlashlight : Flashlight
|
private class ManiaFlashlight : Flashlight
|
||||||
{
|
{
|
||||||
|
@ -47,15 +47,11 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
Precision = 0.1f
|
Precision = 0.1f
|
||||||
};
|
};
|
||||||
|
|
||||||
protected override BindableNumber<float> ModeMultiplier { get; } = new BindableNumber<float>
|
protected override float ModeMultiplier => 180;
|
||||||
{
|
|
||||||
Default = 180,
|
|
||||||
Value = 180,
|
|
||||||
};
|
|
||||||
|
|
||||||
private OsuFlashlight flashlight;
|
private OsuFlashlight flashlight;
|
||||||
|
|
||||||
public override Flashlight CreateFlashlight() => flashlight = new OsuFlashlight(ChangeRadius.Value, InitialRadius.Value, FollowDelay.Value, ModeMultiplier.Value);
|
public override Flashlight CreateFlashlight() => flashlight = new OsuFlashlight(ChangeRadius.Value, InitialRadius.Value, FollowDelay.Value, ModeMultiplier);
|
||||||
|
|
||||||
public void ApplyToDrawableHitObject(DrawableHitObject drawable)
|
public void ApplyToDrawableHitObject(DrawableHitObject drawable)
|
||||||
{
|
{
|
||||||
|
@ -34,13 +34,9 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
Precision = 0.1f
|
Precision = 0.1f
|
||||||
};
|
};
|
||||||
|
|
||||||
protected override BindableNumber<float> ModeMultiplier { get; } = new BindableNumber<float>
|
protected override float ModeMultiplier => 250;
|
||||||
{
|
|
||||||
Default = 250,
|
|
||||||
Value = 250,
|
|
||||||
};
|
|
||||||
|
|
||||||
public override Flashlight CreateFlashlight() => new TaikoFlashlight(playfield, ChangeRadius.Value, InitialRadius.Value, ModeMultiplier.Value);
|
public override Flashlight CreateFlashlight() => new TaikoFlashlight(playfield, ChangeRadius.Value, InitialRadius.Value, ModeMultiplier);
|
||||||
|
|
||||||
private TaikoPlayfield playfield;
|
private TaikoPlayfield playfield;
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
[SettingSource("Initial radius", "Initial radius of the flashlight area.")]
|
[SettingSource("Initial radius", "Initial radius of the flashlight area.")]
|
||||||
public abstract BindableNumber<float> InitialRadius { get; }
|
public abstract BindableNumber<float> InitialRadius { get; }
|
||||||
|
|
||||||
protected abstract BindableNumber<float> ModeMultiplier { get; }
|
protected abstract float ModeMultiplier { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class ModFlashlight<T> : ModFlashlight, IApplicableToDrawableRuleset<T>, IApplicableToScoreProcessor
|
public abstract class ModFlashlight<T> : ModFlashlight, IApplicableToDrawableRuleset<T>, IApplicableToScoreProcessor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user