1
0
Fork 0

Add Config.ReduceVFXIntensity option

This commit is contained in:
ivan tkachenko 2026-01-11 00:12:21 +02:00
parent 7eaa5fce75
commit a64d671527
2 changed files with 9 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- Adjusted lyrics for PWNED (can't believe it missed an obvious joke). - Adjusted lyrics for PWNED (can't believe it missed an obvious joke).
- Added a new track Paarden. - Added a new track Paarden.
- Added a new track DiscoKapot. - 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 ## MuzikaGromche 1337.9001.3 - v73 Happy New Year Edition

View File

@ -1950,7 +1950,8 @@ namespace MuzikaGromche
if (GetInterpolation(loopOffsetTimestamp, track.DrunknessLoopOffsetTimeSeries, Easing.Linear) is { } drunkness) 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) if (GetInterpolation(loopOffsetTimestamp, track.CondensationLoopOffsetTimeSeries, Easing.Linear) is { } condensation)
@ -2341,6 +2342,8 @@ namespace MuzikaGromche
{ {
public static ConfigEntry<bool> DisplayLyrics { get; private set; } = null!; public static ConfigEntry<bool> DisplayLyrics { get; private set; } = null!;
public static ConfigEntry<bool> ReduceVFXIntensity { get; private set; } = null!;
public static ConfigEntry<float> AudioOffset { get; private set; } = null!; public static ConfigEntry<float> AudioOffset { get; private set; } = null!;
public static ConfigEntry<bool> SkipExplicitTracks { get; private set; } = null!; public static ConfigEntry<bool> SkipExplicitTracks { get; private set; } = null!;
@ -2407,6 +2410,10 @@ namespace MuzikaGromche
new ConfigDescription("Display lyrics in the HUD tooltip when you hear the music.")); new ConfigDescription("Display lyrics in the HUD tooltip when you hear the music."));
LethalConfigManager.AddConfigItem(new BoolCheckBoxConfigItem(DisplayLyrics, requiresRestart: false)); 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, Volume = configFile.Bind("General", "Volume", VolumeDefault,
new ConfigDescription("Volume of music played by this mod.", new AcceptableValueRange<float>(VolumeMin, VolumeMax))); new ConfigDescription("Volume of music played by this mod.", new AcceptableValueRange<float>(VolumeMin, VolumeMax)));
LethalConfigManager.AddConfigItem(new FloatSliderConfigItem(Volume, requiresRestart: false)); LethalConfigManager.AddConfigItem(new FloatSliderConfigItem(Volume, requiresRestart: false));