mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 22:52:57 +08:00
26 lines
831 B
C#
26 lines
831 B
C#
// 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.Audio;
|
|
using osu.Framework.Graphics.Sprites;
|
|
using osu.Framework.Timing;
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
{
|
|
public abstract class ModDaycore : ModHalfTime
|
|
{
|
|
public override string Name => "Daycore";
|
|
public override string Acronym => "DC";
|
|
public override IconUsage Icon => FontAwesome.Solid.Question;
|
|
public override string Description => "Whoaaaaa...";
|
|
|
|
public override void ApplyToClock(IAdjustableClock clock)
|
|
{
|
|
if (clock is IHasPitchAdjust pitchAdjust)
|
|
pitchAdjust.PitchAdjust *= RateAdjust;
|
|
else
|
|
base.ApplyToClock(clock);
|
|
}
|
|
}
|
|
}
|