2019-01-24 08:43:03 +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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2021-07-26 21:48:03 +00:00
|
|
|
|
using System;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using osu.Game.Rulesets.Mods;
|
2018-04-19 13:04:12 +00:00
|
|
|
|
using osu.Game.Rulesets.Objects;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
using osu.Game.Rulesets.Osu.Objects;
|
2021-07-26 14:46:41 +00:00
|
|
|
|
using osu.Game.Rulesets.Osu.Utils;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Mods
|
|
|
|
|
{
|
2018-04-19 13:04:12 +00:00
|
|
|
|
public class OsuModHardRock : ModHardRock, IApplicableToHitObject
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
|
|
|
|
public override double ScoreMultiplier => 1.06;
|
|
|
|
|
|
2021-07-27 13:01:01 +00:00
|
|
|
|
public override Type[] IncompatibleMods => base.IncompatibleMods.Append(typeof(ModMirror)).ToArray();
|
2021-07-26 21:48:03 +00:00
|
|
|
|
|
2018-04-19 13:04:12 +00:00
|
|
|
|
public void ApplyToHitObject(HitObject hitObject)
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
2018-04-19 13:04:12 +00:00
|
|
|
|
var osuObject = (OsuHitObject)hitObject;
|
|
|
|
|
|
2021-07-27 13:01:01 +00:00
|
|
|
|
OsuHitObjectGenerationUtils.ReflectVertically(osuObject);
|
2018-04-13 09:19:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|