From a0bdab9f0de894b1c06f28bb720f73b2d0f03584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Nemes?= Date: Wed, 7 Jun 2017 20:29:03 +0200 Subject: [PATCH] Aaand docs again. --- osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Aim.cs | 3 +++ osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Speed.cs | 3 +++ osu.Game.Rulesets.Osu/OsuDifficulty/Utils/History.cs | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Aim.cs b/osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Aim.cs index 99d0e761ad..aad53f6fe8 100644 --- a/osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Aim.cs +++ b/osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Aim.cs @@ -6,6 +6,9 @@ namespace osu.Game.Rulesets.Osu.OsuDifficulty.Skills { + /// + /// Represents the skill required to correctly aim at every object in the map with a uniform CircleSize and normalized distances. + /// public class Aim : Skill { protected override double SkillMultiplier => 26.25; diff --git a/osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Speed.cs b/osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Speed.cs index 826d62adcc..b06063fca4 100644 --- a/osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Speed.cs +++ b/osu.Game.Rulesets.Osu/OsuDifficulty/Skills/Speed.cs @@ -3,6 +3,9 @@ using osu.Game.Rulesets.Osu.OsuDifficulty.Preprocessing; +/// +/// Represents the skill required to press keys with regards to keeping up with the speed at which objects need to be hit. +/// namespace osu.Game.Rulesets.Osu.OsuDifficulty.Skills { public class Speed : Skill diff --git a/osu.Game.Rulesets.Osu/OsuDifficulty/Utils/History.cs b/osu.Game.Rulesets.Osu/OsuDifficulty/Utils/History.cs index 92b206ccf8..d2c2e1d774 100644 --- a/osu.Game.Rulesets.Osu/OsuDifficulty/Utils/History.cs +++ b/osu.Game.Rulesets.Osu/OsuDifficulty/Utils/History.cs @@ -40,7 +40,7 @@ public T this[int i] { get { - if (i > Count - 1) + if (i < 0 || i > Count - 1) throw new IndexOutOfRangeException(); i += marker;