mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 07:42:58 +08:00
Remove object counts from mania/taiko/catch
This commit is contained in:
parent
b9e4b59e46
commit
7eb64ab590
@ -13,18 +13,12 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
|
|||||||
{
|
{
|
||||||
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
||||||
{
|
{
|
||||||
|
int fruits = HitObjects.Count(s => s is Fruit);
|
||||||
int juiceStreams = HitObjects.Count(s => s is JuiceStream);
|
int juiceStreams = HitObjects.Count(s => s is JuiceStream);
|
||||||
int bananaShowers = HitObjects.Count(s => s is BananaShower);
|
int bananaShowers = HitObjects.Count(s => s is BananaShower);
|
||||||
int fruits = HitObjects.Count - juiceStreams - bananaShowers;
|
|
||||||
|
|
||||||
return new[]
|
return new[]
|
||||||
{
|
{
|
||||||
new BeatmapStatistic
|
|
||||||
{
|
|
||||||
Name = @"Object Count",
|
|
||||||
Content = HitObjects.Count.ToString(),
|
|
||||||
Icon = FontAwesome.fa_circle
|
|
||||||
},
|
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Fruit Count",
|
Name = @"Fruit Count",
|
||||||
|
@ -33,17 +33,11 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
|
|||||||
|
|
||||||
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
||||||
{
|
{
|
||||||
|
int notes = HitObjects.Count(s => s is Note);
|
||||||
int holdnotes = HitObjects.Count(s => s is HoldNote);
|
int holdnotes = HitObjects.Count(s => s is HoldNote);
|
||||||
int notes = HitObjects.Count - holdnotes;
|
|
||||||
|
|
||||||
return new[]
|
return new[]
|
||||||
{
|
{
|
||||||
new BeatmapStatistic
|
|
||||||
{
|
|
||||||
Name = @"Object Count",
|
|
||||||
Content = HitObjects.Count.ToString(),
|
|
||||||
Icon = FontAwesome.fa_circle
|
|
||||||
},
|
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Note Count",
|
Name = @"Note Count",
|
||||||
|
@ -13,22 +13,16 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps
|
|||||||
{
|
{
|
||||||
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
||||||
{
|
{
|
||||||
|
int hits = HitObjects.Count(s => s is Hit);
|
||||||
int drumrolls = HitObjects.Count(s => s is DrumRoll);
|
int drumrolls = HitObjects.Count(s => s is DrumRoll);
|
||||||
int swells = HitObjects.Count(s => s is Swell);
|
int swells = HitObjects.Count(s => s is Swell);
|
||||||
int notes = HitObjects.Count - drumrolls - swells;
|
|
||||||
|
|
||||||
return new[]
|
return new[]
|
||||||
{
|
{
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
{
|
{
|
||||||
Name = @"Object Count",
|
Name = @"Hit Count",
|
||||||
Content = HitObjects.Count.ToString(),
|
Content = hits.ToString(),
|
||||||
Icon = FontAwesome.fa_circle
|
|
||||||
},
|
|
||||||
new BeatmapStatistic
|
|
||||||
{
|
|
||||||
Name = @"Note Count",
|
|
||||||
Content = notes.ToString(),
|
|
||||||
Icon = FontAwesome.fa_circle_o
|
Icon = FontAwesome.fa_circle_o
|
||||||
},
|
},
|
||||||
new BeatmapStatistic
|
new BeatmapStatistic
|
||||||
|
Loading…
Reference in New Issue
Block a user