Decompiled source of LCEndlessTimer v1.0.1

BepInEx/plugins/LCEndlessTimer.dll

Decompiled a year ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
[assembly: AssemblyCompany("LCEndlessTimer")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("LCEndlessTimer")]
[assembly: AssemblyTitle("LCEndlessTimer")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
[BepInPlugin("com.yourname.lcrealtime", "LC Real Time Mod", "1.0.0")]
public class LCRealTimeMod : BaseUnityPlugin
{
	private void Awake()
	{
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		new Harmony("com.yourname.lcrealtime").PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"LC Real Time Mod loaded! 1 in-game hour = 5 real minutes.");
	}

	private void Update()
	{
		if ((Object)(object)TimeOfDay.Instance != (Object)null)
		{
			TimeOfDay.Instance.globalTimeSpeedMultiplier = 0.2f;
		}
	}
}