Skip to content

Commit

Permalink
fix/master: Fixed an issue where bombs were not excluded correctly fr…
Browse files Browse the repository at this point in the history
…om the NPS calculation
  • Loading branch information
Shoko84 committed Feb 16, 2020
1 parent 78a96e3 commit 036ae62
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
17 changes: 9 additions & 8 deletions ChartPlugin/Core/ChartCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ public NpsInfo(float nps, float fromTime, float toTime)
}
}

private LevelData _mainGameSceneSetupData;
private BeatmapData _beatmapData;
private LevelData _mainGameSceneSetupData;
private BeatmapData _beatmapData;
private AudioTimeSyncController _audioTimeSyncController;
private List<NpsInfo> _npsSections;
private WindowGraph _windowGraph;
private List<NpsInfo> _npsSections;
private WindowGraph _windowGraph;

private AssetBundle _assetBundle;
private bool _isInitialized;
private bool _isFinished;
private bool _isInitialized;
private bool _isFinished;
private NpsInfo _currentSection;
private int _currentSectionIdx;
private int _currentSectionIdx;
private GameObject _selfCursor;
private int _hardestSectionIdx;
private Canvas _canvas;
Expand Down Expand Up @@ -176,8 +176,9 @@ private List<NpsInfo> GetNpsSections()
var notes = new List<BeatmapObjectData>();

notes = _beatmapData.beatmapLinesData.Aggregate(notes, (current, beatmapLineData) => current.Concat(beatmapLineData.beatmapObjectsData)
.Where(data => data.beatmapObjectType == BeatmapObjectType.Note).ToList());
.Where(data => data.beatmapObjectType == BeatmapObjectType.Note && ((NoteData)data).noteType != NoteType.Bomb).ToList());
notes.Sort((s1, s2) => s1.time.CompareTo(s2.time));

if (notes.Count > 0)
{
var tempNoteCount = 0;
Expand Down
4 changes: 2 additions & 2 deletions ChartPlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.3")]
[assembly: AssemblyFileVersion("1.0.3")]
[assembly: AssemblyVersion("1.0.4")]
[assembly: AssemblyFileVersion("1.0.4")]
2 changes: 1 addition & 1 deletion ChartPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"gameVersion": "1.7.0",
"id": "SongChartVisualizer",
"name": "SongChartVisualizer",
"version": "1.0.3",
"version": "1.0.4",
"dependsOn": {
"BS Utils": "^1.4.1",
"BeatSaberMarkupLanguage": "^1.1.4"
Expand Down

0 comments on commit 036ae62

Please sign in to comment.