2017-04-21 16:33:20 +08:00
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using System;
|
2017-08-05 15:22:10 +08:00
|
|
|
using osu.Game.Beatmaps;
|
2017-04-21 16:33:20 +08:00
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
|
|
{
|
2017-08-05 15:22:10 +08:00
|
|
|
public abstract class ModHardRock : Mod, IApplicableToDifficulty
|
2017-04-21 16:33:20 +08:00
|
|
|
{
|
|
|
|
public override string Name => "Hard Rock";
|
|
|
|
public override FontAwesome Icon => FontAwesome.fa_osu_mod_hardrock;
|
2017-05-03 02:36:55 +08:00
|
|
|
public override ModType Type => ModType.DifficultyIncrease;
|
2017-04-21 16:33:20 +08:00
|
|
|
public override string Description => "Everything just got a bit harder...";
|
|
|
|
public override Type[] IncompatibleMods => new[] { typeof(ModEasy) };
|
2017-08-05 15:22:10 +08:00
|
|
|
|
|
|
|
public void ApplyToDifficulty(BeatmapDifficulty difficulty)
|
|
|
|
{
|
|
|
|
const float ratio = 1.4f;
|
|
|
|
difficulty.CircleSize *= ratio;
|
|
|
|
difficulty.ApproachRate *= ratio;
|
|
|
|
difficulty.DrainRate *= ratio;
|
|
|
|
difficulty.OverallDifficulty *= ratio;
|
|
|
|
}
|
2017-04-21 16:33:20 +08:00
|
|
|
}
|
|
|
|
}
|