Decompiled source of LoadedCompany v1.0.0

Loaded Company.dll

Decompiled 6 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;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("Loaded Company")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Loaded Company")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("29798829-26a5-470d-bac0-0689f38a3d8a")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LoadedCompanyBase;

[BepInPlugin("c0mmander.LoadedCompany", "Loaded Company", "1.0.0.0")]
public class LoadedCompany : BaseUnityPlugin
{
	public const string modGUID = "c0mmander.LoadedCompany";

	public const string modName = "Loaded Company";

	public const string modVersion = "1.0.0.0";

	private readonly Harmony harmony = new Harmony("c0mmander.LoadedCompany");

	private void Awake()
	{
		Logger.CreateLogSource("c0mmander.LoadedCompany").LogMessage((object)"c0mmander.LoadedCompany has loaded succesfully.");
		harmony.PatchAll(typeof(StarterMoneyMod));
	}
}
[HarmonyPatch(typeof(Terminal))]
[HarmonyPatch("Start")]
internal class StarterMoneyMod
{
	[HarmonyPostfix]
	private static void Postfix(ref int ___groupCredits)
	{
		if (___groupCredits == 60)
		{
			___groupCredits = 5000;
		}
	}
}