mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:43:20 +08:00
Add some explanatory comments to conditions
This commit is contained in:
parent
eb57ea76ab
commit
e2e10a8f26
@ -175,6 +175,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool AffectsAccuracy(this HitResult result)
|
public static bool AffectsAccuracy(this HitResult result)
|
||||||
{
|
{
|
||||||
|
// LegacyComboIncrease is a special type which is neither a basic, tick, bonus, or accuracy-affecting result.
|
||||||
if (result == HitResult.LegacyComboIncrease)
|
if (result == HitResult.LegacyComboIncrease)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -186,6 +187,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool IsBasic(this HitResult result)
|
public static bool IsBasic(this HitResult result)
|
||||||
{
|
{
|
||||||
|
// LegacyComboIncrease is a special type which is neither a basic, tick, bonus, or accuracy-affecting result.
|
||||||
if (result == HitResult.LegacyComboIncrease)
|
if (result == HitResult.LegacyComboIncrease)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -250,6 +252,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool IsScorable(this HitResult result)
|
public static bool IsScorable(this HitResult result)
|
||||||
{
|
{
|
||||||
|
// LegacyComboIncrease is not actually scorable (in terms of usable by rulesets for that purpose), but needs to be defined as such to be correctly included in statistics output.
|
||||||
if (result == HitResult.LegacyComboIncrease)
|
if (result == HitResult.LegacyComboIncrease)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user