using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using DiskCardGame;
using HarmonyLib;
using Microsoft.CodeAnalysis;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyCompany("InscryptionArachnophobia")]
[assembly: AssemblyConfiguration("release")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: AssemblyProduct("Inscryption Arachnophobia Mod")]
[assembly: AssemblyTitle("InscryptionArachnophobia")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace InscryptionArachnophobia
{
[HarmonyPatch(typeof(CardBattleIdleEventManager), "GetEventId")]
public static class GetEventIdPatch
{
private static readonly Random Random = new Random();
private static void Postfix(ref string __result)
{
if (!(__result != "SpiderIdleEvent"))
{
__result = ((Random.Next(2) == 0) ? "FingerTappingIdleEvent" : "LookOffIdleEvent");
Plugin.Logger.LogInfo((object)("Prevented SpiderIdleEvent. Replaced with " + __result + "."));
}
}
}
[BepInPlugin("InscryptionArachnophobia", "Inscryption Arachnophobia Mod", "0.0.1")]
public class Plugin : BaseUnityPlugin
{
internal static ManualLogSource Logger;
public void Awake()
{
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
Logger = ((BaseUnityPlugin)this).Logger;
new Harmony("InscryptionArachnophobia").PatchAll();
Logger.LogInfo((object)"Byebye, spiders!");
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "InscryptionArachnophobia";
public const string PLUGIN_NAME = "Inscryption Arachnophobia Mod";
public const string PLUGIN_VERSION = "0.0.1";
}
}