Decompiled source of FreeFlashlight v1.0.0

FreeFlashlight.dll

Decompiled 10 months ago
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 UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("FreeFlashlights")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FreeFlashlights")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("1a882063-bb00-4b57-b3bd-dce69ed486b4")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace FreeFlashlights
{
	[BepInPlugin("evelritual.FreeFlashlights", "Free Flashlights", "1.0.1")]
	public class FreeFlashlights : BaseUnityPlugin
	{
		private const string modGUID = "evelritual.FreeFlashlights";

		private const string modName = "Free Flashlights";

		private const string modSemVer = "1.0.1";

		private readonly Harmony harmony = new Harmony("evelritual.FreeFlashlights");

		private static FreeFlashlights Instance;

		internal ManualLogSource logger;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			logger = Logger.CreateLogSource("evelritual.FreeFlashlights");
			harmony.PatchAll();
			logger.LogInfo((object)"FreeFlashlights Loaded!");
		}
	}
}
namespace FreeFlashlights.Patches
{
	[HarmonyPatch(typeof(Terminal))]
	internal class pricePatch
	{
		[HarmonyPatch("SetItemSales")]
		[HarmonyPostfix]
		private static void StorePrices(ref Item[] ___buyableItemsList)
		{
			___buyableItemsList[1].creditsWorth = 0;
		}
	}
}