1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 02:17:46 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Mods/ManiaModConstantSpeed.cs

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

35 lines
1.2 KiB
C#
Raw Normal View History

2021-02-03 15:28:22 +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;
2022-08-11 04:09:11 +08:00
using osu.Framework.Localisation;
2021-02-03 15:28:22 +08:00
using osu.Game.Configuration;
using osu.Game.Rulesets.Mania.Objects;
using osu.Game.Rulesets.Mania.UI;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.UI;
namespace osu.Game.Rulesets.Mania.Mods
{
public class ManiaModConstantSpeed : Mod, IApplicableToDrawableRuleset<ManiaHitObject>
{
public override string Name => "Constant Speed";
public override string Acronym => "CS";
public override double ScoreMultiplier => 0.9;
2021-02-03 15:28:22 +08:00
2022-08-11 04:09:11 +08:00
public override LocalisableString Description => "No more tricky speed changes!";
2021-02-03 15:28:22 +08:00
public override IconUsage? Icon => FontAwesome.Solid.Equals;
public override ModType Type => ModType.Conversion;
public void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRuleset)
{
var maniaRuleset = (DrawableManiaRuleset)drawableRuleset;
2023-08-15 19:38:17 +08:00
maniaRuleset.VisualisationMethod = ScrollVisualisationMethod.Constant;
2021-02-03 15:28:22 +08:00
}
}
}