Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
Now forcing the difficultyRank to match difficulty level.
Browse files Browse the repository at this point in the history
  • Loading branch information
xyonico committed Jul 19, 2018
1 parent ba37871 commit 74f441b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SongLoaderPlugin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public string Name

public string Version
{
get { return "v4.0"; }
get { return "v4.1"; }
}

public void OnApplicationStart()
Expand Down
5 changes: 4 additions & 1 deletion SongLoaderPlugin/SongLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,13 @@ private CustomSongInfo GetCustomSongInfo(string songPath)
for (int i = 0; i < diffs.AsArray.Count; i++)
{
n = diffs[i];
var difficulty = Utils.ToEnum(n["difficulty"], LevelDifficulty.Normal);
var difficultyRank = (int)difficulty;

diffLevels.Add(new CustomSongInfo.DifficultyLevel
{
difficulty = n["difficulty"],
difficultyRank = n["difficultyRank"].AsInt,
difficultyRank = difficultyRank,
audioPath = n["audioPath"],
jsonPath = n["jsonPath"]
});
Expand Down

0 comments on commit 74f441b

Please sign in to comment.