forked from nikita/muzika-gromche
Downgrade LobbyCompatibility to optional dependency
Since it does not prevent unmodded clients from joining, there is no reason for literally any mod to require it.
This commit is contained in:
parent
4516b853cd
commit
9d23fd5b95
|
@ -6,6 +6,7 @@
|
|||
- Remastered recently added tracks at conventional 44100 Hz for better stitching.
|
||||
- Improved playback experience: use precise DSP time and up-front scheduing for seamless audio stitching, add custom Audio Sources to improve reliability.
|
||||
- Removed remaining CSync code and package references even from debug builds.
|
||||
- Downgraded LobbyCompatibility to optional dependency.
|
||||
|
||||
## MuzikaGromche 1337.420.9001 - Multiverse Edition
|
||||
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
using BepInEx;
|
||||
using BepInEx.Bootstrap;
|
||||
using LobbyCompatibility.Enums;
|
||||
using LobbyCompatibility.Features;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace MuzikaGromche
|
||||
{
|
||||
internal static class Compatibility
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public static void Register(BaseUnityPlugin plugin)
|
||||
{
|
||||
if (Chainloader.PluginInfos.ContainsKey("BMX.LobbyCompatibility"))
|
||||
{
|
||||
RegisterLobbyCompatibility(plugin.Info.Metadata);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private static void RegisterLobbyCompatibility(BepInPlugin plugin)
|
||||
{
|
||||
PluginHelper.RegisterPlugin(plugin.GUID, plugin.Version, CompatibilityLevel.Everyone, VersionStrictness.Patch);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,8 +4,6 @@ using HarmonyLib;
|
|||
using LethalConfig;
|
||||
using LethalConfig.ConfigItems;
|
||||
using LethalConfig.ConfigItems.Options;
|
||||
using LobbyCompatibility.Attributes;
|
||||
using LobbyCompatibility.Enums;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
@ -24,8 +22,7 @@ namespace MuzikaGromche
|
|||
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
|
||||
[BepInDependency("ainavt.lc.lethalconfig", "1.4.6")]
|
||||
[BepInDependency("watergun.v72lightfix", BepInDependency.DependencyFlags.SoftDependency)]
|
||||
[BepInDependency("BMX.LobbyCompatibility", BepInDependency.DependencyFlags.HardDependency)]
|
||||
[LobbyCompatibility(CompatibilityLevel.Everyone, VersionStrictness.Patch)]
|
||||
[BepInDependency("BMX.LobbyCompatibility", BepInDependency.DependencyFlags.SoftDependency)]
|
||||
public class Plugin : BaseUnityPlugin
|
||||
{
|
||||
internal new static Config Config { get; private set; } = null!;
|
||||
|
@ -693,6 +690,7 @@ namespace MuzikaGromche
|
|||
harmony.PatchAll(typeof(DiscoBallDespawnPatch));
|
||||
harmony.PatchAll(typeof(SpawnRatePatch));
|
||||
NetcodePatcher();
|
||||
Compatibility.Register(this);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ To keep it a surprise, it is adviced that you do not read the detailed descripti
|
|||
|
||||
Muzika Gromche is compatible with *Almost Vanilla™* gameplay and [*High Quota Mindset*](https://youtu.be/18RUCgQldGg?t=2553). It slightly changes certain timers, so won't be compatible with leaderboards. If you are a streamer™, be aware that it does play *copyrighted content.*
|
||||
|
||||
Muzika Gromche works with all Lethal Company versions from v72 all the way back to v40, and is likely to work on all future versions as long as dependencies ([`LethalConfig`] and [`LobbyCompatibility`]) are working.
|
||||
Muzika Gromche works with all Lethal Company versions from v72 all the way back to v40, and is likely to work on all future versions as long as dependencies are working. [`LobbyCompatibility`] is recommended but optional.
|
||||
|
||||
Speaking of dependencies, [`V70PoweredLights_Fix`] is not strictly required, but it doesn't hurt to have it installed on any version, and it makes this mod more enjoyable on new Mansion tiles.
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
"dependencies": [
|
||||
"BepInEx-BepInExPack-5.4.2100",
|
||||
"AinaVT-LethalConfig-1.4.6",
|
||||
"WaterGun-V70PoweredLights_Fix-1.0.0",
|
||||
"BMX-LobbyCompatibility-1.5.1"
|
||||
"WaterGun-V70PoweredLights_Fix-1.0.0"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue