Decompiled source of WeakBlood v1.0.0

GeckVolantMarin-WeakBlood.dll

Decompiled 3 months ago
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 InscryptionAPI.Card;
using Microsoft.CodeAnalysis;

[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.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("GeckVolantMarin-WeakBlood")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("GeckVolantMarin-WeakBlood")]
[assembly: AssemblyTitle("GeckVolantMarin-WeakBlood")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.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 WeakBlood
{
	[BepInPlugin("GeckVolantMarin-WeakBlood", "GeckVolantMarin-WeakBlood", "1.0.0")]
	[BepInProcess("Inscryption.exe")]
	public class Plugin : BaseUnityPlugin
	{
		internal static ManualLogSource Logger;

		public static string directory;

		private void removeCardChoiceForOtherThenOneBlood()
		{
			//IL_0076: Unknown result type (might be due to invalid IL or missing references)
			//IL_007c: Invalid comparison between Unknown and I4
			foreach (CardInfo allDatum in ScriptableObjectLoader<CardInfo>.AllData)
			{
				bool flag = true;
				if (allDatum.BloodCost == 1)
				{
					flag = false;
				}
				if (allDatum.BonesCost != 0)
				{
					flag = true;
				}
				if (allDatum.EnergyCost != 0)
				{
					flag = true;
				}
				if (allDatum.GemsCost.Count != 0)
				{
					flag = true;
				}
				if (CardExtensions.HasCardMetaCategory(allDatum, (CardMetaCategory)3) || (int)allDatum.temple > 0)
				{
					flag = false;
				}
				if (flag)
				{
					CardExtensions.RemoveMetaCategories(allDatum, (CardMetaCategory[])(object)new CardMetaCategory[1]);
					CardExtensions.RemoveMetaCategories(allDatum, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)1 });
				}
			}
		}

		private void Awake()
		{
			Logger = ((BaseUnityPlugin)this).Logger;
			directory = ((BaseUnityPlugin)this).Info.Location;
			removeCardChoiceForOtherThenOneBlood();
			Logger.LogInfo((object)"Reussi?");
			Logger.LogInfo((object)"Plugin GeckVolantMarin-WeakBlood is loaded!");
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "GeckVolantMarin-WeakBlood";

		public const string PLUGIN_NAME = "GeckVolantMarin-WeakBlood";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}