1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-18 03:52:54 +08:00
osu-lazer/osu.Game.Rulesets.Taiko/Mods/TaikoModConstantSpeed.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.1 KiB
C#
Raw Normal View History

2024-02-23 18:27:12 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics.Sprites;
2024-02-23 21:01:12 +08:00
using osu.Framework.Localisation;
using osu.Game.Configuration;
using osu.Game.Rulesets.Taiko.Objects;
using osu.Game.Rulesets.Taiko.UI;
2024-02-23 18:27:12 +08:00
using osu.Game.Rulesets.Mods;
2024-02-23 21:01:12 +08:00
using osu.Game.Rulesets.UI;
2024-02-23 18:27:12 +08:00
namespace osu.Game.Rulesets.Taiko.Mods
{
2024-02-23 21:01:12 +08:00
public class TaikoModConstantSpeed : Mod, IApplicableToDrawableRuleset<TaikoHitObject>
2024-02-23 18:27:12 +08:00
{
public override string Name => "Constant Speed";
public override string Acronym => "CS";
2024-03-08 23:01:57 +08:00
public override double ScoreMultiplier => 0.9;
2024-02-23 18:27:12 +08:00
public override LocalisableString Description => "No more tricky speed changes!";
public override IconUsage? Icon => FontAwesome.Solid.Equals;
public override ModType Type => ModType.Conversion;
2024-02-23 21:01:12 +08:00
public void ApplyToDrawableRuleset(DrawableRuleset<TaikoHitObject> drawableRuleset)
2024-02-23 18:27:12 +08:00
{
2024-02-23 21:01:12 +08:00
var taikoRuleset = (DrawableTaikoRuleset)drawableRuleset;
taikoRuleset.VisualisationMethod = ScrollVisualisationMethod.Constant;
2024-02-23 18:27:12 +08:00
}
}
}