Decompiled source of JetpackLearning v1.1.0

JetpackLearning.dll

Decompiled 8 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 JetpackLearning.Patches;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("JetpackLearning")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("JetpackLearning")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("9D935899-F698-4FD6-A7E2-9E6DE6A54178")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace JetpackLearning
{
	public static class PluginInfo
	{
		public const string MOD_GUID = "Freemaker.JetpackLearning";

		public const string MOD_NAME = "JetpackLearning";

		public const string MOD_VERSION = "1.1.0.0";
	}
	[BepInPlugin("Freemaker.JetpackLearning", "JetpackLearning", "1.1.0.0")]
	public class Plugin : BaseUnityPlugin
	{
		private readonly Harmony _harmony = new Harmony("Freemaker.JetpackLearning");

		public static Plugin Instance { get; private set; }

		public ManualLogSource Mls { get; private set; }

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			Mls = Logger.CreateLogSource("Freemaker.JetpackLearning");
			Mls.LogInfo((object)"active");
			_harmony.PatchAll(typeof(Plugin));
			_harmony.PatchAll(typeof(PricePatch));
		}
	}
}
namespace JetpackLearning.Patches
{
	[HarmonyPatch(typeof(Terminal))]
	public class PricePatch
	{
		[HarmonyPatch("SetItemSales")]
		[HarmonyPostfix]
		private static void StorePrices(ref Item[] ___buyableItemsList)
		{
			___buyableItemsList[9].creditsWorth = 0;
		}
	}
}