using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using UnityEngine; using slippery_companys.slipperycompany; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("slippery companys")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("slippery companys")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("a483ba86-d28e-4f52-9db5-91558d391a70")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace slippery_companys { [BepInPlugin("lethal.learning", "learning", "1.0.4")] public class slippery : BaseUnityPlugin { private const string modGUID = "lethal.learning"; private const string modName = "learning"; private const string modVersion = "1.0.4"; private readonly Harmony harmony = new Harmony("lethal.learning"); private static slippery Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("lethal.learning"); mls.LogInfo((object)"learning ha"); harmony.PatchAll(typeof(slippery)); harmony.PatchAll(typeof(PlayerControllerBPatch)); } } } namespace slippery_companys.slipperycompany { [HarmonyPatch(typeof(PlayerControllerB))] internal class PlayerControllerBPatch { [HarmonyPatch("Update")] [HarmonyPostfix] public static void Change(ref float ___slipperyFloor) { //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Invalid comparison between Unknown and I4 //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Invalid comparison between Unknown and I4 //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Invalid comparison between Unknown and I4 bool flag = !GameNetworkManager.Instance.localPlayerController.isInElevator && !GameNetworkManager.Instance.localPlayerController.isInHangarShipRoom && StartOfRound.Instance.currentLevel.planetHasTime; bool flag2 = (int)StartOfRound.Instance.currentLevel.currentWeather != 5 && (int)StartOfRound.Instance.currentLevel.currentWeather != 4 && (int)StartOfRound.Instance.currentLevel.currentWeather != 3; if (flag && flag2) { ___slipperyFloor = 50f; } else { ___slipperyFloor = 0f; } } } }