using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LCBatterylessFlashlight.Patches;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("LCBatterylessFlashlight")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LCBatterylessFlashlight")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3005afbf-9271-48be-97f1-8e7ba67b021d")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LCBatterylessFlashlight
{
[BepInPlugin("BreadMods.LC_UltimateFlashlight", "LC Ultimate Flashlight Mod", "1.0.0.0")]
public class FlashlightModUnlimitedBase : BaseUnityPlugin
{
private const string modGUID = "BreadMods.LC_UltimateFlashlight";
private const string modName = "LC Ultimate Flashlight Mod";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("BreadMods.LC_UltimateFlashlight");
private static FlashlightModUnlimitedBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("BreadMods.LC_UltimateFlashlight");
mls.LogInfo((object)"LC_Ultimate Flashlight has Awoken");
harmony.PatchAll(typeof(FlashlightItemPatch));
}
}
}
namespace LCBatterylessFlashlight.Patches
{
[HarmonyPatch(typeof(FlashlightItem))]
internal class FlashlightItemPatch
{
[HarmonyPatch("Start")]
[HarmonyPostfix]
private static void FullBattery(ref Item ___itemProperties)
{
___itemProperties.requiresBattery = false;
}
}
}