Decompiled source of FreeCruiser v1.0.1

FreeCruiser.dll

Decompiled a month 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 FreeCruiser.Patches;
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("FreeCruiser")]
[assembly: AssemblyDescription("Cruiser training only")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Windows 10")]
[assembly: AssemblyProduct("FreeCruiser")]
[assembly: AssemblyCopyright("Copyright © Windows 10 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("870fe69c-1c97-4383-98c2-c4299095d981")]
[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 FreeCruiser
{
	[BepInPlugin("mdb.FreeCruiser", "FreeCruiser", "1.0.0.0")]
	public class FreeCruiser : BaseUnityPlugin
	{
		private const string modGUID = "mdb.FreeCruiser";

		private const string modName = "FreeCruiser";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("mdb.FreeCruiser");

		private static FreeCruiser Instance;

		internal static ManualLogSource log;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			log = Logger.CreateLogSource("mdb.FreeCruiser");
			harmony.PatchAll(typeof(FreeCruiser));
			harmony.PatchAll(typeof(pricePatch));
			log.LogInfo((object)"Aaaaaaaaa! Awake!");
		}
	}
}
namespace FreeCruiser.Patches
{
	[HarmonyPatch(typeof(Terminal))]
	internal class pricePatch
	{
		[HarmonyPatch("SetItemSales")]
		[HarmonyPostfix]
		private static void StorePrices(Terminal __instance)
		{
			__instance.itemSalesPercentages[13] = 0;
			__instance.itemSalesPercentages[15] = 0;
		}
	}
}