Decompiled source of InfiniteClover v1.0.2

InfiniteClover.dll

Decompiled 7 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 DiskCardGame;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("InfiniteClover")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("InfiniteClover")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyInformationalVersion("1.0.2")]
[assembly: AssemblyProduct("InfiniteClover")]
[assembly: AssemblyTitle("InfiniteClover")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.2.0")]
[module: UnverifiableCode]
namespace InfiniteClover;

[BepInPlugin("Octihex.InfiniteClover", "Infinite Clover", "1.0.2")]
public class Plugin : BaseUnityPlugin
{
	[HarmonyPatch(typeof(CardSingleChoicesSequencer), "OnRerollChoices")]
	private class Patch1
	{
		private static bool Prefix(CardSingleChoicesSequencer __instance)
		{
			__instance.choicesRerolled = true;
			return false;
		}
	}

	private void Awake()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000c: Expected O, but got Unknown
		Harmony val = new Harmony("Octihex.InfiniteClover");
		val.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin Infinite Clover is loaded!");
	}
}