Skip to content

Commit

Permalink
Merge pull request #57 from Kylon99/dev/master/#56_GameModifiersBehav…
Browse files Browse the repository at this point in the history
…ior_do_not_work_in_Beat_Saber_1.27

#56 GameModifiersBehavior do not work in Beat Saber 1.27
  • Loading branch information
Kylon99 authored Mar 8, 2023
2 parents 27f6401 + be9bec9 commit d726c42
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
6 changes: 3 additions & 3 deletions AlternativePlay/GameModifiersBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private void TransformNotes(BeatmapData beatmapData, ColorType undesiredNoteType
{
var config = Configuration.instance.ConfigurationData;

foreach (NoteData note in beatmapData.GetBeatmapDataItems<NoteData>())
foreach (NoteData note in beatmapData.GetBeatmapDataItems<NoteData>(0))
{
// Transform for NoArrows or TouchNotes here but do not if NoArrowsRandom was already applied
if ((config.NoArrows || config.TouchNotes) && !config.NoArrowsRandom)
Expand Down Expand Up @@ -150,11 +150,11 @@ private void TransformSliders(BeatmapData beatmapData, ColorType undesiredNoteTy
if (config.NoSliders)
{
// Remove all Burst Sliders from list
var burstSliders = beatmapData.GetBeatmapDataItems<SliderData>().Where(s => s.sliderType == SliderData.Type.Burst).ToList();
var burstSliders = beatmapData.GetBeatmapDataItems<SliderData>(0).Where(s => s.sliderType == SliderData.Type.Burst).ToList();
burstSliders.ForEach(s => beatmapData.allBeatmapDataItems.Remove(s));
}

foreach (SliderData slider in beatmapData.GetBeatmapDataItems<SliderData>())
foreach (SliderData slider in beatmapData.GetBeatmapDataItems<SliderData>(0))
{
// Transform for One Color if this is the other note type
if (config.OneColor && slider.colorType == undesiredNoteType)
Expand Down
6 changes: 3 additions & 3 deletions AlternativePlay/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Kylon99")]
[assembly: AssemblyProduct("AlternativePlay")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -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")]
8 changes: 4 additions & 4 deletions AlternativePlay/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d726c42

Please sign in to comment.