2019-01-24 16:43:03 +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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-07-27 05:48:03 +08:00
|
|
|
|
using System;
|
2018-03-01 23:25:14 +08:00
|
|
|
|
using System.Linq;
|
2023-10-12 18:48:45 +08:00
|
|
|
|
using osu.Game.Beatmaps;
|
2018-01-09 12:41:57 +08:00
|
|
|
|
using osu.Game.Rulesets.Mods;
|
2018-04-19 21:04:12 +08:00
|
|
|
|
using osu.Game.Rulesets.Objects;
|
2018-01-09 12:41:57 +08:00
|
|
|
|
using osu.Game.Rulesets.Osu.Objects;
|
2021-07-26 22:46:41 +08:00
|
|
|
|
using osu.Game.Rulesets.Osu.Utils;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-01-09 12:41:57 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Osu.Mods
|
|
|
|
|
{
|
2018-04-19 21:04:12 +08:00
|
|
|
|
public class OsuModHardRock : ModHardRock, IApplicableToHitObject
|
2018-01-09 12:41:57 +08:00
|
|
|
|
{
|
2022-07-18 12:22:25 +08:00
|
|
|
|
public override double ScoreMultiplier => UsesDefaultConfiguration ? 1.06 : 1;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-07-27 21:01:01 +08:00
|
|
|
|
public override Type[] IncompatibleMods => base.IncompatibleMods.Append(typeof(ModMirror)).ToArray();
|
2021-07-27 05:48:03 +08:00
|
|
|
|
|
2018-04-19 21:04:12 +08:00
|
|
|
|
public void ApplyToHitObject(HitObject hitObject)
|
2018-01-09 12:41:57 +08:00
|
|
|
|
{
|
2018-04-19 21:04:12 +08:00
|
|
|
|
var osuObject = (OsuHitObject)hitObject;
|
|
|
|
|
|
2022-12-08 05:09:53 +08:00
|
|
|
|
OsuHitObjectGenerationUtils.ReflectVerticallyAlongPlayfield(osuObject);
|
2018-01-09 12:41:57 +08:00
|
|
|
|
}
|
2023-10-12 18:48:45 +08:00
|
|
|
|
|
|
|
|
|
public override void ApplyToDifficulty(BeatmapDifficulty difficulty)
|
|
|
|
|
{
|
|
|
|
|
base.ApplyToDifficulty(difficulty);
|
|
|
|
|
|
|
|
|
|
difficulty.CircleSize = Math.Min(difficulty.CircleSize * 1.3f, 10.0f); // CS uses a custom 1.3 ratio.
|
|
|
|
|
difficulty.ApproachRate = Math.Min(difficulty.ApproachRate * ADJUST_RATIO, 10.0f);
|
|
|
|
|
}
|
2018-01-09 12:41:57 +08:00
|
|
|
|
}
|
|
|
|
|
}
|