Skip to content

Commit

Permalink
Merge pull request #1 from legoandmars/master
Browse files Browse the repository at this point in the history
Update for Beat Saber 1.17.0
  • Loading branch information
Shadnix-was-taken authored Sep 2, 2021
2 parents e2fb5a4 + 79cebd4 commit 65e0745
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SongPlayHistory/SPHUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void SetRecords(IDifficultyBeatmap beatmap, List<Record> records)
{
List<Record> truncated = records.Take(10).ToList();

var notesCount = beatmap.beatmapData.cuttableNotesType;
var notesCount = beatmap.beatmapData.cuttableNotesCount;
var maxScore = ScoreModel.MaxRawScoreForNumberOfNotes(notesCount);
var builder = new StringBuilder(200);

Expand Down Expand Up @@ -244,7 +244,7 @@ static void SetValue(RectTransform column, string value)
var maxCombo = LevelStatsView.GetComponentsInChildren<RectTransform>().First(x => x.name == "MaxCombo");
var highscore = LevelStatsView.GetComponentsInChildren<RectTransform>().First(x => x.name == "Highscore");
var maxRank = LevelStatsView.GetComponentsInChildren<RectTransform>().First(x => x.name == "MaxRank");
var notesCount = beatmap.beatmapData.cuttableNotesType;
var notesCount = beatmap.beatmapData.cuttableNotesCount;
var maxScore = ScoreModel.MaxRawScoreForNumberOfNotes(notesCount);
var estimatedAcc = stats.highScore / (float)maxScore * 100f;
SetValue(maxCombo, stats.validScore ? $"{stats.maxCombo}" : "-");
Expand Down
2 changes: 1 addition & 1 deletion SongPlayHistory/SongPlayHistoryContinued.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Library</OutputType>
<TargetFramework>net472</TargetFramework>
<AssemblyName>SongPlayHistoryContinued</AssemblyName>
<AssemblyVersion>1.6.0</AssemblyVersion>
<AssemblyVersion>1.6.1</AssemblyVersion>
<LangVersion>8.0</LangVersion>
<AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath>
<BeatSaberDir>$(ProjectDir)References</BeatSaberDir>
Expand Down
4 changes: 2 additions & 2 deletions SongPlayHistory/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"author": "peperoro",
"description": "A score tracker with simple in-game UI.",
"gameVersion": "1.16.4",
"gameVersion": "1.17.0",
"id": "SongPlayHistoryContinued",
"name": "SongPlayHistoryContinued",
"version": "1.6.0",
"version": "1.6.1",
"dependsOn": {
"BSIPA": "^4.1.6",
"BeatSaberMarkupLanguage": "^1.5.3",
Expand Down

0 comments on commit 65e0745

Please sign in to comment.