diff --git a/CHANGELOG.md b/CHANGELOG.md index 12b53fc..c3aeaa2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Adjusted lyrics for PWNED (can't believe it missed an obvious joke). - Added a new track Paarden. - Added a new track DiscoKapot. +- Added an accessibility option to reduce the intensity of overly distracting visual effects. ## MuzikaGromche 1337.9001.3 - v73 Happy New Year Edition diff --git a/MuzikaGromche/Plugin.cs b/MuzikaGromche/Plugin.cs index 9e6f36f..3342cbd 100644 --- a/MuzikaGromche/Plugin.cs +++ b/MuzikaGromche/Plugin.cs @@ -1950,7 +1950,8 @@ namespace MuzikaGromche if (GetInterpolation(loopOffsetTimestamp, track.DrunknessLoopOffsetTimeSeries, Easing.Linear) is { } drunkness) { - events.Add(new DrunkEvent(drunkness)); + var value = Config.ReduceVFXIntensity.Value ? drunkness * 0.3f : drunkness; + events.Add(new DrunkEvent(value)); } if (GetInterpolation(loopOffsetTimestamp, track.CondensationLoopOffsetTimeSeries, Easing.Linear) is { } condensation) @@ -2341,6 +2342,8 @@ namespace MuzikaGromche { public static ConfigEntry DisplayLyrics { get; private set; } = null!; + public static ConfigEntry ReduceVFXIntensity { get; private set; } = null!; + public static ConfigEntry AudioOffset { get; private set; } = null!; public static ConfigEntry SkipExplicitTracks { get; private set; } = null!; @@ -2407,6 +2410,10 @@ namespace MuzikaGromche new ConfigDescription("Display lyrics in the HUD tooltip when you hear the music.")); LethalConfigManager.AddConfigItem(new BoolCheckBoxConfigItem(DisplayLyrics, requiresRestart: false)); + ReduceVFXIntensity = configFile.Bind("General", "Reduce Visual Effects", false, + new ConfigDescription("Reduce intensity of certain visual effects when you hear the music.")); + LethalConfigManager.AddConfigItem(new BoolCheckBoxConfigItem(ReduceVFXIntensity, requiresRestart: false)); + Volume = configFile.Bind("General", "Volume", VolumeDefault, new ConfigDescription("Volume of music played by this mod.", new AcceptableValueRange(VolumeMin, VolumeMax))); LethalConfigManager.AddConfigItem(new FloatSliderConfigItem(Volume, requiresRestart: false));