Decompiled source of Tribal Pelts v2.3.1

plugins/TribalPelts.dll

Decompiled 2 days ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Bootstrap;
using DiskCardGame;
using HarmonyLib;
using InscryptionAPI.Card;
using InscryptionAPI.Guid;
using InscryptionAPI.Helpers;
using InscryptionAPI.Pelts;
using Microsoft.CodeAnalysis;
using MushroomTribes;
using UnityEngine;

[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("TribalPelts")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("A Libary of TribalPelts")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: AssemblyInformationalVersion("2.1.0+cef1b633b007986625abddde0195509406521946")]
[assembly: AssemblyProduct("TribalPelts")]
[assembly: AssemblyTitle("TribalPelts")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("2.1.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 Tribal_Pelts
{
	[BepInPlugin("creator.TribalPelts", "TribalPelts", "2.0.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class PeltLoader : BaseUnityPlugin
	{
		private readonly Harmony harmony = new Harmony("creator.TribalPelts");

		private const string PluginGuid = "creator.TribalPelts";

		private const string PluginName = "TribalPelts";

		private const string PluginVersion = "2.0.0";

		private const string PluginPrefix = "TribalPelts";

		public const string TGUID = "tribes.libary";

		public const string NGUID = "nevernamed.inscryption.sigils";

		public const string ZGUID = "zepht.inscryption.ZephtPvZ";

		public const string VGUID = "extraVoid.inscryption.VerminTribe";

		public const string JGUID = "MADH.inscryption.JSONLoader";

		public const string WGUID = "whistlewind.inscryption.abnormalsigils";

		public const string LGUID = "Lily.BOT";

		public const string MGUID = "mushroom.pelts";

		public int Count;

		public static CardInfo CreateCard(string name, string displayName, string imagePath, string imagePathEmisive, int attack, int health, Tribe tribe)
		{
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_008d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0082: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Expected I4, but got Unknown
			CardInfo val = CardManager.New("creator.TribalPelts", name, displayName, attack, health, (string)null);
			CardExtensions.SetPortrait(val, TextureHelper.GetImageAsTexture(Path.Combine(imagePath), (FilterMode)0), (FilterMode?)null);
			CardExtensions.SetEmissivePortrait(val, TextureHelper.GetImageAsTexture(Path.Combine(imagePathEmisive), (FilterMode)0), (FilterMode?)null);
			val.cardComplexity = (CardComplexity)1;
			CardExtensions.AddTraits(val, (Trait[])(object)new Trait[1] { (Trait)13 });
			if ((int)tribe != 0)
			{
				CardExtensions.AddTribes(val, (Tribe[])(object)new Tribe[1] { (Tribe)(int)tribe });
			}
			val.temple = (CardTemple)0;
			CardExtensions.AddSpecialAbilities(val, (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)27 });
			CardExtensions.AddAppearances(val, (Appearance[])(object)new Appearance[2]
			{
				(Appearance)2,
				(Appearance)9
			});
			return val;
		}

		public static CardInfo CreateRareCard(string name, string displayName, string imagePath, string imagePathEmisive, int attack, int health, Tribe tribe)
		{
			CardInfo val = CreateCard(name, displayName, imagePath, imagePathEmisive, attack, health, (Tribe)0);
			CardExtensions.AddAppearances(val, (Appearance[])(object)new Appearance[1] { (Appearance)6 });
			return val;
		}

		public static Tribe GetCustomTribe(string GUID, string name)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			return GuidManager.GetEnumValue<Tribe>(GUID, name);
		}

		public void Awake()
		{
			AvianPelt();
			CaninePelt();
			HoovedPelt();
			TurtlePelt();
			InsectPelt();
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			if (Chainloader.PluginInfos.ContainsKey("tribes.libary"))
			{
				((BaseUnityPlugin)this).Logger.LogMessage((object)"Do I see The other DLL? I do, I do see the other DLL! (Tribal Libary)");
			}
			if (Chainloader.PluginInfos.ContainsKey("nevernamed.inscryption.sigils"))
			{
				((BaseUnityPlugin)this).Logger.LogMessage((object)"Do I see The other DLL? I do, I do see the other DLL! (Nevernameds Sigilarium)");
				NeverNamedsSigilarium();
			}
			if (Chainloader.PluginInfos.ContainsKey("zepht.inscryption.ZephtPvZ"))
			{
				((BaseUnityPlugin)this).Logger.LogMessage((object)"Do I see The other DLL? I do, I do see the other DLL! (Plants Vs Zombies)");
			}
			if (Chainloader.PluginInfos.ContainsKey("extraVoid.inscryption.VerminTribe"))
			{
				((BaseUnityPlugin)this).Logger.LogMessage((object)"Do I see The other DLL? I do, I do see the other DLL! (Vermin Tribe)");
				VerminTribe();
			}
			if (Chainloader.PluginInfos.ContainsKey("whistlewind.inscryption.abnormalsigils"))
			{
				((BaseUnityPlugin)this).Logger.LogMessage((object)"Do I see The other DLL? I do, I do see the other DLL! (Abnormal Sigils)");
			}
			if (Chainloader.PluginInfos.ContainsKey("Lily.BOT"))
			{
				((BaseUnityPlugin)this).Logger.LogMessage((object)"Do I see The other DLL? I do, I do see the other DLL! (Bundle O' Totems)");
				BundleOTotems();
			}
			if (Chainloader.PluginInfos.ContainsKey("mushroom.pelts"))
			{
				((BaseUnityPlugin)this).Logger.LogMessage((object)"Do I see The other DLL? I do, I do see the other DLL! (Mushroom Tribes)");
				MushroomTribesPelts();
			}
			else
			{
				((BaseUnityPlugin)this).Logger.LogMessage((object)"Do I see the Other DLL? I dont, I dont see any other DLLs!");
			}
			((BaseUnityPlugin)this).Logger.LogMessage((object)$"Successfully Loaded {Count} Pelt(s)!");
			static void AvianPelt()
			{
				CardInfo val5 = CreateCard("Vanila_Bird_Pelt", "Raven Epidermis", "Avian_Pelt.png", "none.png", 0, 2, (Tribe)2);
				PeltManager.New("creator.TribalPelts", val5, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe((Tribe)2) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void CaninePelt()
			{
				CardInfo val4 = CreateCard("Vanila_Canine_Pelt", "Coyote Pelt", "Canine_Pelt.png", "none.png", 0, 2, (Tribe)3);
				PeltManager.New("creator.TribalPelts", val4, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe((Tribe)3) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void HoovedPelt()
			{
				CardInfo val3 = CreateCard("Vanila_Hooved_Pelt", "Deer Pelt", "Deer_Pelt.png", "none.png", 0, 2, (Tribe)4);
				PeltManager.New("creator.TribalPelts", val3, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe((Tribe)4) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void InsectPelt()
			{
				CardInfo val = CreateCard("Vanila_Insect_Pelt", "Moth Molt", "Insect_Pelt.png", "none.png", 0, 2, (Tribe)6);
				PeltManager.New("creator.TribalPelts", val, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe((Tribe)6) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void TurtlePelt()
			{
				CardInfo val2 = CreateCard("Vanila_Reptile_Pelt", "Crocodile Hide", "Reptile_Pelt.png", "none.png", 0, 2, (Tribe)5);
				PeltManager.New("creator.TribalPelts", val2, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe((Tribe)5) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
		}

		public void BundleOTotems()
		{
			HumanRemains();
			SharkLeather();
			TigerPelt();
			BeaverPelt();
			Count++;
			Count++;
			Count++;
			Count++;
			static void BeaverPelt()
			{
				//IL_0020: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val = CreateCard("Bundle_Of_Totems_Rodent_Pelt", "Beaver Pelt", "Beaver Pelt.png", "None.png", 0, 2, GetCustomTribe("Lily.BOT", "rodent"));
				PeltManager.New("creator.TribalPelts", val, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(GetCustomTribe("Lily.BOT", "rodent")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void HumanRemains()
			{
				//IL_0020: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val4 = CreateCard("Bundle_Of_Totems_Undead_Pelt", "Human Remains", "Human Remains.png", "None.png", 0, 2, GetCustomTribe("Lily.BOT", "undead"));
				PeltManager.New("creator.TribalPelts", val4, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(GetCustomTribe("Lily.BOT", "undead")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void SharkLeather()
			{
				//IL_0020: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val3 = CreateCard("Bundle_Of_Totems_Aquatic_Pelt", "Shark Leather", "Shark Leather.png", "None.png", 0, 2, GetCustomTribe("Lily.BOT", "aquatic"));
				PeltManager.New("creator.TribalPelts", val3, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(GetCustomTribe("Lily.BOT", "aquatic")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void TigerPelt()
			{
				//IL_0020: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val2 = CreateCard("Bundle_Of_Totems_Feline_Pelt", "Tiger Pelt", "Tiger Pelt.png", "None.png", 0, 2, GetCustomTribe("Lily.BOT", "feline"));
				PeltManager.New("creator.TribalPelts", val2, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(GetCustomTribe("Lily.BOT", "feline")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
		}

		public void MushroomTribesPelts()
		{
			BlasterPelt();
			BlockPelt();
			BlooperPelt();
			BobOmbPelt();
			BooPelt();
			BronzePortrait();
			ChainChompPelt();
			CheepCheepPelt();
			ConkdorPelt();
			DragonPelt();
			DryBonesPelt();
			GoldPortrait();
			GoombaPelt();
			KoopaPelt();
			PiranhaPelt();
			PokeyPelt();
			PowerUpPelt();
			RamPelt();
			ShroobPelt();
			ShyGuyPelt();
			SilverPortrait();
			StarPelt();
			SpikePelt();
			TanukiPelt();
			ThwompPelt();
			WaddlewingPelt();
			WigglerPelt();
			PowerMoon();
			StarBits();
			ShineSprite();
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			Count++;
			static void BlasterPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val30 = CreateCard("Mushroom_Blaster_Pelt", "Blaster Pelt", "Blaster Pelt.png", "Blaster Pelt_e.png", 0, 2, MushroomTribes.blasterTribe);
				PeltManager.New("creator.TribalPelts", val30, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.blasterTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void BlockPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val29 = CreateCard("Mushroom_Block_Pelt", "Block Pelt", "Block Pelt.png", "Block Pelt_e.png", 0, 2, MushroomTribes.blockTribe);
				PeltManager.New("creator.TribalPelts", val29, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.blockTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void BlooperPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val28 = CreateCard("Mushroom_Blooper_Pelt", "Blooper Pelt", "Blooper Pelt.png", "Blooper Pelt_e.png", 0, 2, MushroomTribes.blooperTribe);
				PeltManager.New("creator.TribalPelts", val28, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.blooperTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void BobOmbPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val27 = CreateCard("Mushroom_Bob_Omb_Pelt", "Bob-Omb Pelt", "Bob-Omb Pelt.png", "Bob-Omb Pelt_e.png", 0, 2, MushroomTribes.bombombTribe);
				PeltManager.New("creator.TribalPelts", val27, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.bombombTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void BooPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val26 = CreateCard("Mushroom_Boo_Pelt", "Boo Pelt", "Boo Pelt.png", "Boo Pelt_e.png", 0, 2, MushroomTribes.booTribe);
				PeltManager.New("creator.TribalPelts", val26, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.booTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void BronzePortrait()
			{
				CardInfo val25 = CreateCard("Mushroom_Bronze_Portrait", "Bronze Portrait", "Bronze Portrait.png", "Bronze Portrait_e.png", 0, 2, (Tribe)0);
				PeltManager.New("creator.TribalPelts", val25, 3, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => CardExtensions.ModPrefixIs(a, "Gallery") && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void ChainChompPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val24 = CreateCard("Mushroom_Chain_Chomp_Pelt", "Chain Chomp Pelt", "Chain Chomp Pelt.png", "Chain Chomp Pelt_e.png", 0, 2, MushroomTribes.chompTribe);
				PeltManager.New("creator.TribalPelts", val24, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.chompTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void CheepCheepPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val23 = CreateCard("Mushroom_Cheep_Cheep_Pelt", "Cheep-Cheep Pelt", "Cheep-Cheep Pelt.png", "Cheep-Cheep Pelt_e.png", 0, 2, MushroomTribes.cheepCheepTribe);
				PeltManager.New("creator.TribalPelts", val23, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.cheepCheepTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void ConkdorPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val22 = CreateCard("Mushroom_Conkdor_Pelt", "Conkdor Pelt", "Conkdor Pelt.png", "Conkdor Pelt_e.png", 0, 2, MushroomTribes.conkdorTribe);
				PeltManager.New("creator.TribalPelts", val22, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.conkdorTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void DragonPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val21 = CreateCard("Mushroom_Dragon_Pelt", "Dragon Pelt", "Dragon Pelt.png", "Dragon Pelt_e.png", 0, 2, MushroomTribes.dinosaurTribe);
				PeltManager.New("creator.TribalPelts", val21, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.dinosaurTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void DryBonesPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val20 = CreateCard("Mushroom_Dry_Bones_Pelt", "Dry Bones Pelt", "Dry Bones Pelt.png", "Dry Bones Pelt_e.png", 0, 2, MushroomTribes.skeletonTribe);
				PeltManager.New("creator.TribalPelts", val20, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.skeletonTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void GoldPortrait()
			{
				CardInfo val19 = CreateRareCard("Mushroom_Gold_Portrait", "Gold Portrait", "Gold Portrait.png", "Gold Portrait_e.png", 0, 2, (Tribe)0);
				PeltManager.New("creator.TribalPelts", val19, 11, 0, 2, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => CardExtensions.ModPrefixIs(a, "Gallery") && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)3 }))));
			}
			static void GoombaPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val18 = CreateCard("Mushroom_Goomba_Pelt", "Goomba Pelt", "Goomba Pelt.png", "Goomba Pelt_e.png", 0, 2, MushroomTribes.goombaTribe);
				PeltManager.New("creator.TribalPelts", val18, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.goombaTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void KoopaPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val17 = CreateCard("Mushroom_Koopa_Pelt", "Koopa Pelt", "Koopa Pelt.png", "Koopa Pelt_e.png", 0, 2, MushroomTribes.koopaTribe);
				PeltManager.New("creator.TribalPelts", val17, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.koopaTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void PiranhaPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val16 = CreateCard("Mushroom_Piranha_Plant_Pelt", "Piranha Plant Pelt", "Piranha Pelt.png", "Piranha Pelt_e.png", 0, 2, MushroomTribes.piranhaPlantTribe);
				PeltManager.New("creator.TribalPelts", val16, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.piranhaPlantTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void PokeyPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val15 = CreateCard("Mushroom_Pokey_Pelt", "Pokey Pelt", "Pokey Pelt.png", "Pokey Pelt_e.png", 0, 2, MushroomTribes.pokeyTribe);
				PeltManager.New("creator.TribalPelts", val15, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.pokeyTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void PowerMoon()
			{
				CardInfo val3 = CreateCard("Mushroom_Power_Moon", "Power Moon", "Power Moon.png", "Power Moon_e.png", 0, 2, (Tribe)0);
				PeltManager.New("creator.TribalPelts", val3, 7, 1, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => CardExtensions.ModPrefixIs(a, "Mushroom") && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void PowerUpPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val14 = CreateCard("Mushroom_Power_Up_Pelt", "Power-Up Pelt", "Power-Up Pelt.png", "Power-Up Pelt_e.png", 0, 2, MushroomTribes.powerUpTribe);
				PeltManager.New("creator.TribalPelts", val14, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.powerUpTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void RamPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val13 = CreateCard("Mushroom_Ram_Pelt", "Ram Pelt", "Ram Pelt.png", "Ram Pelt_e.png", 0, 2, MushroomTribes.ramTribe);
				PeltManager.New("creator.TribalPelts", val13, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.ramTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void ShineSprite()
			{
				CardInfo val = CreateCard("Mushroom_Shine_Sprite", "Shine Sprite", "Shine Sprite.png", "Shine Sprite_e.png", 0, 2, (Tribe)0);
				PeltManager.New("creator.TribalPelts", val, 11, 0, 2, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => CardExtensions.ModPrefixIs(a, "Mushroom") && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)3 }))));
			}
			static void ShroobPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val12 = CreateCard("Mushroom_Shroob_Pelt", "Shroob Pelt", "Shroob Pelt.png", "Shroob Pelt_e.png", 0, 2, MushroomTribes.shroobTribe);
				PeltManager.New("creator.TribalPelts", val12, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.shroobTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void ShyGuyPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val11 = CreateCard("Mushroom_Shy_Guy_Pelt", "Shy Guy Pelt", "Shy Guy Pelt.png", "Shy Guy Pelt_e.png", 0, 2, MushroomTribes.shyGuyTribe);
				PeltManager.New("creator.TribalPelts", val11, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.shyGuyTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void SilverPortrait()
			{
				CardInfo val10 = CreateCard("Mushroom_Silver_Portrait", "Silver Portrait", "Silver Portrait.png", "Silver Portrait_e.png", 0, 2, (Tribe)0);
				PeltManager.New("creator.TribalPelts", val10, 7, 1, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => CardExtensions.ModPrefixIs(a, "Gallery") && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void SpikePelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val8 = CreateCard("Mushroom_Spike_Pelt", "Spike Pelt", "Spike Pelt.png", "Spike Pelt_e.png", 0, 2, MushroomTribes.spikeTribe);
				PeltManager.New("creator.TribalPelts", val8, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.spikeTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void StarBits()
			{
				CardInfo val2 = CreateCard("Mushroom_Star_Bits", "Star Bits", "Star Bits.png", "Star Bits_e.png", 0, 2, (Tribe)0);
				PeltManager.New("creator.TribalPelts", val2, 3, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => CardExtensions.ModPrefixIs(a, "Mushroom") && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void StarPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val9 = CreateCard("Mushroom_Star_Pelt", "Star Pelt", "Star Pelt.png", "Star Pelt_e.png", 0, 2, MushroomTribes.starTribe);
				PeltManager.New("creator.TribalPelts", val9, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.starTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void TanukiPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val7 = CreateCard("Mushroom_Tanuki_Pelt", "Tanuki Pelt", "Tanuki Pelt.png", "Tanuki Pelt_e.png", 0, 2, MushroomTribes.tanukiTribe);
				PeltManager.New("creator.TribalPelts", val7, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.tanukiTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void ThwompPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val6 = CreateCard("Mushroom_Thwomp_Pelt", "Thwomp Pelt", "Thwomp Pelt.png", "Thwomp Pelt_e.png", 0, 2, MushroomTribes.crusherTribe);
				PeltManager.New("creator.TribalPelts", val6, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.crusherTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void WaddlewingPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val5 = CreateCard("Mushroom_Waddlewing_Pelt", "Waddlewing Pelt", "Waddlewing Pelt.png", "Waddlewing Pelt_e.png", 0, 2, MushroomTribes.waddlewingTribe);
				PeltManager.New("creator.TribalPelts", val5, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.waddlewingTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void WigglerPelt()
			{
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val4 = CreateCard("Mushroom_Wiggler_Pelt", "Wiggler Pelt", "Wiggler Pelt.png", "Wiggler Pelt_e.png", 0, 2, MushroomTribes.wrigglerTribe);
				PeltManager.New("creator.TribalPelts", val4, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(MushroomTribes.wrigglerTribe) && (CardExtensions.ModPrefixIs(a, "Mushroom") || CardExtensions.ModPrefixIs(a, "Gallery")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
		}

		public void NeverNamedsSigilarium()
		{
			BeaverPeltSigilarium();
			LobsterShell();
			SpiderSkin();
			Count++;
			Count++;
			Count++;
			static void BeaverPeltSigilarium()
			{
				//IL_0020: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val3 = CreateCard("Nevernameds_Sigilarium_Rodent_Pelt", "Beaver Pelt", "Beaver Pelt.png", "None.png", 0, 2, GetCustomTribe("nevernamed.inscryption.sigils", "Rodent"));
				PeltManager.New("creator.TribalPelts", val3, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(GetCustomTribe("Lily.BOT", "Rodent")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void LobsterShell()
			{
				//IL_0020: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val2 = CreateCard("Nevernameds_Sigilarium_Crustacean_Pelt", "Lobster Shell", "Lobster Shell.png", "None.png", 0, 2, GetCustomTribe("nevernamed.inscryption.sigils", "Crustacean"));
				PeltManager.New("creator.TribalPelts", val2, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(GetCustomTribe("nevernamed.inscryption.sigils", "Crustacean")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
			static void SpiderSkin()
			{
				//IL_0020: Unknown result type (might be due to invalid IL or missing references)
				CardInfo val = CreateCard("Nevernameds_Sigilarium_Arachnid_Pelt", "Spider Skin", "Spider Skin.png", "None.png", 0, 2, GetCustomTribe("nevernamed.inscryption.sigils", "Arachnid"));
				PeltManager.New("creator.TribalPelts", val, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe(GetCustomTribe("nevernamed.inscryption.sigils", "Arachnid")) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
		}

		public void VerminTribe()
		{
			BeaverPeltVermin();
			Count++;
			static void BeaverPeltVermin()
			{
				CardInfo val = CreateCard("Vermin_Vermin_Pelt", "Beaver Pelt", "Beaver Pelt.png", "None.png", 0, 2, (Tribe)1);
				PeltManager.New("creator.TribalPelts", val, 6, 0, 4, (Func<List<CardInfo>>)(() => CardManager.AllCardsCopy.FindAll((CardInfo a) => a.IsOfTribe((Tribe)1) && CardExtensions.HasAnyOfCardMetaCategories(a, (CardMetaCategory[])(object)new CardMetaCategory[2]
				{
					default(CardMetaCategory),
					(CardMetaCategory)1
				}))));
			}
		}
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "TribalPelts";

		public const string PLUGIN_NAME = "TribalPelts";

		public const string PLUGIN_VERSION = "2.1.0";
	}
}