using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("InfinityLantern")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("InfinityLantern")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("4B94340F-DA77-43BC-8B08-2AFAC45FA025")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace InfinityLantern;
[BepInPlugin("rubat.peak.infinitelantern", "Infinite Lantern", "1.0.0")]
public class InfiniteLanternPlugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
new Harmony("rubat.peak.infinitelantern").PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Infinite Lantern plugin loaded");
}
}
[HarmonyPatch(typeof(Lantern), "UpdateFuel")]
public static class LanternUpdateFuelPatch
{
private static bool Prefix()
{
return false;
}
}
[HarmonyPatch(typeof(Lantern), "Awake")]
public static class LanternAwakePatch
{
private static void Postfix(Lantern __instance)
{
if ((Object)(object)__instance.lanternLight != (Object)null)
{
__instance.lightIntensity = 5.4f;
Light lanternLight = __instance.lanternLight;
lanternLight.range *= 2.3f;
}
}
}