mirror of https://github.com/ppy/osu
30 lines
914 B
C#
30 lines
914 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 System;
|
|
using System.Linq;
|
|
using osu.Framework.Extensions.IEnumerableExtensions;
|
|
using osu.Game.Rulesets.Mods;
|
|
using osu.Game.Rulesets.Objects;
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
using osu.Game.Rulesets.Osu.UI;
|
|
using osu.Game.Rulesets.Osu.Utils;
|
|
using osuTK;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Mods
|
|
{
|
|
public class OsuModHardRock : ModHardRock, IApplicableToHitObject
|
|
{
|
|
public override double ScoreMultiplier => 1.06;
|
|
|
|
public override Type[] IncompatibleMods => base.IncompatibleMods.Append(typeof(ModMirror)).ToArray();
|
|
|
|
public void ApplyToHitObject(HitObject hitObject)
|
|
{
|
|
var osuObject = (OsuHitObject)hitObject;
|
|
|
|
OsuHitObjectGenerationUtils.ReflectVertically(osuObject);
|
|
}
|
|
}
|
|
}
|