mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Add osu!taiko Constant Speed
mod
This commit is contained in:
parent
d544b4dbf1
commit
0113fce02f
31
osu.Game.Rulesets.Taiko/Mods/TaikoModConstantSpeed.cs
Normal file
31
osu.Game.Rulesets.Taiko/Mods/TaikoModConstantSpeed.cs
Normal file
@ -0,0 +1,31 @@
|
||||
// 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.Localisation;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Rulesets.Taiko.Beatmaps;
|
||||
|
||||
namespace osu.Game.Rulesets.Taiko.Mods
|
||||
{
|
||||
public class TaikoModConstantSpeed : Mod, IApplicableToBeatmap
|
||||
{
|
||||
public override string Name => "Constant Speed";
|
||||
public override string Acronym => "CS";
|
||||
public override double ScoreMultiplier => 0.8;
|
||||
public override LocalisableString Description => "No more tricky speed changes!";
|
||||
public override IconUsage? Icon => FontAwesome.Solid.Equals;
|
||||
public override ModType Type => ModType.Conversion;
|
||||
|
||||
public void ApplyToBeatmap(IBeatmap beatmap)
|
||||
{
|
||||
var taikoBeatmap = (TaikoBeatmap)beatmap;
|
||||
|
||||
foreach (var effectControlPoint in taikoBeatmap.ControlPointInfo.EffectPoints)
|
||||
{
|
||||
effectControlPoint.ScrollSpeed = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -150,6 +150,7 @@ namespace osu.Game.Rulesets.Taiko
|
||||
new TaikoModClassic(),
|
||||
new TaikoModSwap(),
|
||||
new TaikoModSingleTap(),
|
||||
new TaikoModConstantSpeed(),
|
||||
};
|
||||
|
||||
case ModType.Automation:
|
||||
|
Loading…
Reference in New Issue
Block a user