Decompiled source of GoodCredit v1.0.4

GoodCredit.dll

Decompiled 3 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
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: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("GoodCredit")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("You don't need money with credit like this.")]
[assembly: AssemblyFileVersion("1.0.3.0")]
[assembly: AssemblyInformationalVersion("1.0.3")]
[assembly: AssemblyProduct("GoodCredit")]
[assembly: AssemblyTitle("GoodCredit")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.3.0")]
[module: UnverifiableCode]
namespace GoodCredit;

[BepInPlugin("GoodCredit", "GoodCredit", "1.0.3")]
public class Plugin : BaseUnityPlugin
{
	[HarmonyPatch(typeof(RoomStatsHolder))]
	internal class RoomStatsHolderPatch
	{
		[HarmonyPatch("CanAfford")]
		[HarmonyPostfix]
		private static bool CanAffordPatch(bool canAfford)
		{
			Debug.logger.Log((object)"Scanning credit card...");
			Debug.logger.Log((object)"Wow! Amazing credit!");
			return true;
		}
	}

	private const string PLUGIN_NAME = "GoodCredit";

	private const string PLUGIN_GUID = "s3.GoodCredit";

	private const string PLUGIN_VER = "1.0.4";

	private readonly Harmony harmony = new Harmony("s3.GoodCredit");

	private void Awake()
	{
		harmony.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin s3.GoodCredit:v1.0.4 is loaded!");
	}
}
public static class PluginInfo
{
	public const string PLUGIN_GUID = "GoodCredit";

	public const string PLUGIN_NAME = "GoodCredit";

	public const string PLUGIN_VERSION = "1.0.3";
}