Decompiled source of Tribal Pelts v2.3.2

plugins/TribalPelts.dll

Decompiled 3 weeks 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 InscryptionAPI.Pelts.Extensions;
using Microsoft.CodeAnalysis;
using MushroomTribes;
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(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyCompany("TribalPelts")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("A Libary of TribalPelts")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyInformationalVersion("2.2.0+61202554f5ee43d6b430fd6181d5097b4cc66d3a")]
[assembly: AssemblyProduct("TribalPelts")]
[assembly: AssemblyTitle("TribalPelts")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("2.2.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.2.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.2.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 = 0;

		public static CardInfo CreateCard(string name, string displayName, string imagePath, string imagePathEmisive, int attack, int health, Tribe tribe)
		{
			//IL_005f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0076: Unknown result type (might be due to invalid IL or missing references)
			//IL_0079: Invalid comparison between Unknown and I4
			//IL_0093: Unknown result type (might be due to invalid IL or missing references)
			//IL_0088: Unknown result type (might be due to invalid IL or missing references)
			//IL_008b: 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_0003: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: 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);
				PeltExtensions.SetTierName(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
				})))), "Raven Epidermises");
			}
			static void CaninePelt()
			{
				CardInfo val4 = CreateCard("Vanila_Canine_Pelt", "Coyote Pelt", "Canine_Pelt.png", "none.png", 0, 2, (Tribe)3);
				PeltExtensions.SetTierName(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
				})))), "Coyote Pelts");
			}
			static void HoovedPelt()
			{
				CardInfo val3 = CreateCard("Vanila_Hooved_Pelt", "Deer Pelt", "Deer_Pelt.png", "none.png", 0, 2, (Tribe)4);
				PeltExtensions.SetTierName(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
				})))), "Deer Pelts");
			}
			static void InsectPelt()
			{
				CardInfo val = CreateCard("Vanila_Insect_Pelt", "Moth Molt", "Insect_Pelt.png", "none.png", 0, 2, (Tribe)6);
				PeltExtensions.SetTierName(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
				})))), "Moth Molts");
			}
			static void TurtlePelt()
			{
				CardInfo val2 = CreateCard("Vanila_Reptile_Pelt", "Crocodile Hide", "Reptile_Pelt.png", "none.png", 0, 2, (Tribe)5);
				PeltExtensions.SetTierName(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
				})))), "Crocodile Hides");
			}
		}

		public void BundleOTotems()
		{
			HumanRemains();
			SharkLeather();
			TigerPelt();
			BeaverPelt();
			Count++;
			Count++;
			Count++;
			Count++;
			static void BeaverPelt()
			{
				//IL_0021: 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"));
				PeltExtensions.SetTierName(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
				})))), "Beaver Pelts");
			}
			static void HumanRemains()
			{
				//IL_0021: 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"));
				PeltExtensions.SetTierName(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
				})))), "Human Remains");
			}
			static void SharkLeather()
			{
				//IL_0021: 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"));
				PeltExtensions.SetTierName(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
				})))), "Shark Leather");
			}
			static void TigerPelt()
			{
				//IL_0021: 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"));
				PeltExtensions.SetTierName(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
				})))), "Tiger Pelts");
			}
		}

		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_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Blaster Pelt");
			}
			static void BlockPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Block Pelts");
			}
			static void BlooperPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Blooper Pelts");
			}
			static void BobOmbPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Bob-Omb Pelts");
			}
			static void BooPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Boo Pelts");
			}
			static void BronzePortrait()
			{
				CardInfo val25 = CreateCard("Mushroom_Bronze_Portrait", "Bronze Portrait", "Bronze Portrait.png", "Bronze Portrait_e.png", 0, 2, (Tribe)0);
				PeltExtensions.SetTierName(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
				})))), "Bronze Portraits");
			}
			static void ChainChompPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Chain Chomp Pelts");
			}
			static void CheepCheepPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Cheep Cheep Pelts");
			}
			static void ConkdorPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Conkdor Pelts");
			}
			static void DragonPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Dragon Pelts");
			}
			static void DryBonesPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Dry Bones Pelts");
			}
			static void GoldPortrait()
			{
				CardInfo val19 = CreateRareCard("Mushroom_Gold_Portrait", "Gold Portrait", "Gold Portrait.png", "Gold Portrait_e.png", 0, 2, (Tribe)0);
				PeltExtensions.SetTierName(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 })))), "Gold Portraits");
			}
			static void GoombaPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Goomba Pelts");
			}
			static void KoopaPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Koopa Pelts");
			}
			static void PiranhaPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Piranha Pelts");
			}
			static void PokeyPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Pokey Pelts");
			}
			static void PowerMoon()
			{
				CardInfo val3 = CreateCard("Mushroom_Power_Moon", "Power Moon", "Power Moon.png", "Power Moon_e.png", 0, 2, (Tribe)0);
				PeltExtensions.SetTierName(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
				})))), "Power Moons");
			}
			static void PowerUpPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Power Up Pelts");
			}
			static void RamPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Ram Pelts");
			}
			static void ShineSprite()
			{
				CardInfo val = CreateCard("Mushroom_Shine_Sprite", "Shine Sprite", "Shine Sprite.png", "Shine Sprite_e.png", 0, 2, (Tribe)0);
				PeltExtensions.SetTierName(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 })))), "Shine Sprites");
			}
			static void ShroobPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Shroob Pelts");
			}
			static void ShyGuyPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Shy Guy Pelts");
			}
			static void SilverPortrait()
			{
				CardInfo val10 = CreateCard("Mushroom_Silver_Portrait", "Silver Portrait", "Silver Portrait.png", "Silver Portrait_e.png", 0, 2, (Tribe)0);
				PeltExtensions.SetTierName(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
				})))), "Silver Poraits");
			}
			static void SpikePelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Spike Pelts");
			}
			static void StarBits()
			{
				CardInfo val2 = CreateCard("Mushroom_Star_Bits", "Star Bits", "Star Bits.png", "Star Bits_e.png", 0, 2, (Tribe)0);
				PeltExtensions.SetTierName(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
				})))), "Star Bits");
			}
			static void StarPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Star Pelts");
			}
			static void TanukiPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Takuni Pelts");
			}
			static void ThwompPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Thwomp Pelts");
			}
			static void WaddlewingPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Waddlewing Pelts");
			}
			static void WigglerPelt()
			{
				//IL_0017: 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);
				PeltExtensions.SetTierName(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
				})))), "Wiggler Pelts");
			}
		}

		public void NeverNamedsSigilarium()
		{
			BeaverPeltSigilarium();
			LobsterShell();
			SpiderSkin();
			Count++;
			Count++;
			Count++;
			static void BeaverPeltSigilarium()
			{
				//IL_0021: 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"));
				PeltExtensions.SetTierName(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
				})))), "Beaver Pelts");
			}
			static void LobsterShell()
			{
				//IL_0021: 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"));
				PeltExtensions.SetTierName(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
				})))), "Lobster Shells");
			}
			static void SpiderSkin()
			{
				//IL_0021: 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"));
				PeltExtensions.SetTierName(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
				})))), "Spider Skins");
			}
		}

		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);
				PeltExtensions.SetTierName(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
				})))), "Beaver Pelts");
			}
		}
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "TribalPelts";

		public const string PLUGIN_NAME = "TribalPelts";

		public const string PLUGIN_VERSION = "2.2.0";
	}
}