using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
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("LCTimeScale")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("LCTimeScale")]
[assembly: AssemblyTitle("LCTimeScale")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace LCRealTimeMod;
[BepInPlugin("com.yourname.lcrealtime", "LC Real Time Mod", "1.0.0")]
public class LCRealTimeMod : BaseUnityPlugin
{
public const string PLUGIN_GUID = "com.yourname.lcrealtime";
public const string PLUGIN_NAME = "LC Real Time Mod";
public const string PLUGIN_VERSION = "1.0.0";
private const float TargetSpeedMultiplier = 0.2f;
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"LC Real Time Mod 1.0.0 loaded — 1 in‑game hour = 5 real minutes.");
ApplyTimeScale();
}
private void Update()
{
ApplyTimeScale();
}
private static void ApplyTimeScale()
{
if ((Object)(object)TimeOfDay.Instance != (Object)null)
{
TimeOfDay.Instance.globalTimeSpeedMultiplier = 0.2f;
}
}
}