Please disclose if your mod was created primarily 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 AfterNight v0.0.1
AfterNight.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("LethalDays")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("Slows the clock down to better allow Exploration")] [assembly: AssemblyFileVersion("0.0.5.0")] [assembly: AssemblyInformationalVersion("0.0.5")] [assembly: AssemblyProduct("LethalDays")] [assembly: AssemblyTitle("LethalDays")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.5.0")] [module: UnverifiableCode] [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 LethalDays { public static class PluginInfo { public const string PLUGIN_GUID = "LethalDays"; public const string PLUGIN_NAME = "LethalDays"; public const string PLUGIN_VERSION = "0.0.5"; } } namespace AfterNight { [BepInPlugin("woah25.AfterNight", "AfterNight", "1.0.0")] [BepInProcess("Lethal Company.exe")] public class Plugin : BaseUnityPlugin { private const string MOD_GUID = "woah25.AfterNight"; private readonly Harmony harmony = new Harmony("woah25.AfterNight"); public static Plugin Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("woah25.AfterNight"); mls.LogInfo((object)"Plugin AfterNight is loaded! MOD_GUID: 'woah25.AfterNight'"); harmony.PatchAll(typeof(Plugin)); } [HarmonyPatch(typeof(TimeOfDay), "Update")] [HarmonyPostfix] public static void AdjustTime(TimeOfDay __instance) { float deltaTime = Time.deltaTime; __instance.globalTime += deltaTime; if (__instance.globalTime >= __instance.globalTimeAtEndOfDay) { __instance.globalTime -= __instance.globalTimeAtEndOfDay; } } } }