mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Add difficulty rating to StarDifficulty
This commit is contained in:
@ -307,5 +307,19 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
// Todo: Add more members (BeatmapInfo.DifficultyRating? Attributes? Etc...)
|
// Todo: Add more members (BeatmapInfo.DifficultyRating? Attributes? Etc...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DifficultyRating DifficultyRating
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (Stars < 2.0) return DifficultyRating.Easy;
|
||||||
|
if (Stars < 2.7) return DifficultyRating.Normal;
|
||||||
|
if (Stars < 4.0) return DifficultyRating.Hard;
|
||||||
|
if (Stars < 5.3) return DifficultyRating.Insane;
|
||||||
|
if (Stars < 6.5) return DifficultyRating.Expert;
|
||||||
|
|
||||||
|
return DifficultyRating.ExpertPlus;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user