From be9bec9adc563da7a5aa192b7404d7b1362ef636 Mon Sep 17 00:00:00 2001 From: Kevin Kylon Date: Tue, 7 Mar 2023 23:39:44 -0800 Subject: [PATCH] #56 Fixed GameModifiersBehavior to support Beat Saber 1.27. Updated to 0.7.5 --- AlternativePlay/GameModifiersBehavior.cs | 6 +++--- AlternativePlay/Properties/AssemblyInfo.cs | 6 +++--- AlternativePlay/manifest.json | 8 ++++---- README.md | 4 ++++ 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/AlternativePlay/GameModifiersBehavior.cs b/AlternativePlay/GameModifiersBehavior.cs index 0fc30a3..ffcc6b2 100644 --- a/AlternativePlay/GameModifiersBehavior.cs +++ b/AlternativePlay/GameModifiersBehavior.cs @@ -118,7 +118,7 @@ private void TransformNotes(BeatmapData beatmapData, ColorType undesiredNoteType { var config = Configuration.instance.ConfigurationData; - foreach (NoteData note in beatmapData.GetBeatmapDataItems()) + foreach (NoteData note in beatmapData.GetBeatmapDataItems(0)) { // Transform for NoArrows or TouchNotes here but do not if NoArrowsRandom was already applied if ((config.NoArrows || config.TouchNotes) && !config.NoArrowsRandom) @@ -150,11 +150,11 @@ private void TransformSliders(BeatmapData beatmapData, ColorType undesiredNoteTy if (config.NoSliders) { // Remove all Burst Sliders from list - var burstSliders = beatmapData.GetBeatmapDataItems().Where(s => s.sliderType == SliderData.Type.Burst).ToList(); + var burstSliders = beatmapData.GetBeatmapDataItems(0).Where(s => s.sliderType == SliderData.Type.Burst).ToList(); burstSliders.ForEach(s => beatmapData.allBeatmapDataItems.Remove(s)); } - foreach (SliderData slider in beatmapData.GetBeatmapDataItems()) + foreach (SliderData slider in beatmapData.GetBeatmapDataItems(0)) { // Transform for One Color if this is the other note type if (config.OneColor && slider.colorType == undesiredNoteType) diff --git a/AlternativePlay/Properties/AssemblyInfo.cs b/AlternativePlay/Properties/AssemblyInfo.cs index 7ea7b5c..91b9b9a 100644 --- a/AlternativePlay/Properties/AssemblyInfo.cs +++ b/AlternativePlay/Properties/AssemblyInfo.cs @@ -9,7 +9,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Kylon99")] [assembly: AssemblyProduct("AlternativePlay")] -[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -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("0.7.3.0")] -[assembly: AssemblyFileVersion("0.7.3.0")] +[assembly: AssemblyVersion("0.7.5.0")] +[assembly: AssemblyFileVersion("0.7.5.0")] diff --git a/AlternativePlay/manifest.json b/AlternativePlay/manifest.json index 68a3416..84eac1f 100644 --- a/AlternativePlay/manifest.json +++ b/AlternativePlay/manifest.json @@ -3,15 +3,15 @@ "author": "Kylon99", "description": "Darth Maul, Spear and new game play styles and modifiers for Beat Saber", "features": [], - "gameVersion": "1.21", + "gameVersion": "1.27", "icon": "AlternativePlay.Public.DarthMaulColor.png", "id": "AlternativePlay", "name": "AlternativePlay", - "version": "0.7.4", + "version": "0.7.5", "dependsOn": { "BSIPA": "^4.2.2", - "BeatSaberMarkupLanguage": "^1.6.3", - "BS Utils": "^1.12.0" + "BeatSaberMarkupLanguage": "^1.6.8", + "BS Utils": "^1.12.1" }, "links": { "project-home": "https://github.com/Kylon99/AlternativePlay", diff --git a/README.md b/README.md index 97abb22..3cbfdf3 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,10 @@ This mod depends on the following mods. Download them at [BeatMods](https://bea Drop the AlternativePlay.dll file into your Plugins folder under your BeatSaber folder. ## Changelog + +### 0.7.5 +- Fixed GameModifiersBehavior to support Beat Saber 1.27 + ### 0.7.4 - Updated to support Beat Saber 1.21 - Added NoSliders game modifier option