Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of InstantRest v1.0.0
InstantRest.dll
Decompiled 8 hours agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyCompany("InstantRest")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+491ec0694a85297968c294d5c79995cea5318c04")] [assembly: AssemblyProduct("InstantRest")] [assembly: AssemblyTitle("InstantRest")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace InstantRest { [BepInPlugin("zopthemop.instantrest", "Instant Rest", "1.0.0")] public class Plugin : BaseUnityPlugin { public const string ModGUID = "zopthemop.instantrest"; public const string ModName = "Instant Rest"; public const string ModVersion = "1.0.0"; public const string ModDescription = "Instantly rest when comfortable"; private readonly Harmony harmony = new Harmony("zopthemop.instantrest"); private void Awake() { ((BaseUnityPlugin)this).Logger.LogInfo((object)"Instant Rest loaded"); harmony.PatchAll(); } private void OnDestroy() { harmony.UnpatchSelf(); } } [HarmonyPatch(typeof(SE_Cozy), "UpdateStatusEffect", new Type[] { typeof(float) })] public static class UpdateStatusEffect_Patch { public static void Prefix(SE_Cozy __instance) { __instance.m_delay = 0f; } } }