using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Photon.Pun; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("RepoCosmeticLimitBypass")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("RepoCosmeticLimitBypass")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e6068331-fd2d-406e-a846-e70cb0033e75")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace RepoCosmeticLimitBypass; [BepInPlugin("com.sunwu.cosmetic_limit_bypass", "Cosmetic Limit Bypass", "1.0.0")] public class CosmeticLimitBypassPlugin : BaseUnityPlugin { internal static ManualLogSource Logger; private void Awake() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) Logger = ((BaseUnityPlugin)this).Logger; new Harmony("com.sunwu.cosmetic_limit_bypass").PatchAll(); Logger.LogInfo((object)"CosmeticLimitBypass patch applied."); } } [HarmonyPatch(typeof(CosmeticWorldObject), "ExtractRPC")] public static class CosmeticLimitBypass_ExtractRPC_Patch { [HarmonyPrefix] private static void Prefix(CosmeticWorldObject __instance) { if (PhotonNetwork.IsConnected && !PhotonNetwork.IsMasterClient) { Traverse.Create((object)__instance).Field("inExtraction").SetValue((object)true); } } } [HarmonyPatch(typeof(ResultScreenUI), "StateCloseDoor")] public static class CosmeticLimitBypass_StateCloseDoor_Patch { [HarmonyPrefix] private static void Prefix() { if ((Object)(object)RunManager.instance != (Object)null) { Traverse.Create((object)RunManager.instance).Field("cosmeticWorldObjectCooldown").SetValue((object)0f); } } }