2024-02-23 10:27:12 +00: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 13:01:12 +00:00
|
|
|
using osu.Framework.Localisation;
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
using osu.Game.Rulesets.Taiko.Objects;
|
|
|
|
using osu.Game.Rulesets.Taiko.UI;
|
2024-02-23 10:27:12 +00:00
|
|
|
using osu.Game.Rulesets.Mods;
|
2024-02-23 13:01:12 +00:00
|
|
|
using osu.Game.Rulesets.UI;
|
2024-02-23 10:27:12 +00:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Mods
|
|
|
|
{
|
2024-02-23 13:01:12 +00:00
|
|
|
public class TaikoModConstantSpeed : Mod, IApplicableToDrawableRuleset<TaikoHitObject>
|
2024-02-23 10:27:12 +00:00
|
|
|
{
|
|
|
|
public override string Name => "Constant Speed";
|
|
|
|
public override string Acronym => "CS";
|
2024-03-08 15:01:57 +00:00
|
|
|
public override double ScoreMultiplier => 0.9;
|
2024-02-23 10:27:12 +00: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 13:01:12 +00:00
|
|
|
public void ApplyToDrawableRuleset(DrawableRuleset<TaikoHitObject> drawableRuleset)
|
2024-02-23 10:27:12 +00:00
|
|
|
{
|
2024-02-23 13:01:12 +00:00
|
|
|
var taikoRuleset = (DrawableTaikoRuleset)drawableRuleset;
|
|
|
|
taikoRuleset.VisualisationMethod = ScrollVisualisationMethod.Constant;
|
2024-02-23 10:27:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|