Decompiled source of Bonnies Baking Pack v1.0.0

BonniesBakingPack.dll

Decompiled 6 hours ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Bootstrap;
using BepInEx.Configuration;
using BepInEx.Logging;
using DiskCardGame;
using GrimoraMod;
using HarmonyLib;
using Infiniscryption.P03KayceeRun.Cards;
using Infiniscryption.P03SigilLibrary.Sigils;
using Infiniscryption.PackManagement;
using Infiniscryption.Spells.Sigils;
using InscryptionAPI.Ascension;
using InscryptionAPI.Card;
using InscryptionAPI.Dialogue;
using InscryptionAPI.Guid;
using InscryptionAPI.Helpers;
using InscryptionAPI.Helpers.Extensions;
using InscryptionAPI.TalkingCards;
using InscryptionAPI.TalkingCards.Animation;
using InscryptionAPI.TalkingCards.Create;
using InscryptionAPI.Triggers;
using Microsoft.CodeAnalysis;
using Pixelplacement;
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("BonniesBakingPack")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Bake delicious pastries and gather fresh ingredients in this small card pack for Inscryption!")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+579240c8ce12265602bce60b7f368a2cc7bb282f")]
[assembly: AssemblyProduct("BonniesBakingPack")]
[assembly: AssemblyTitle("BonniesBakingPack")]
[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 BonniesBakingPack
{
	[BepInPlugin("whistlewind.inscryption.bonniesbakingpack", "Bonnie's Baking Pack", "1.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.*/)]
	public class BakingPlugin : BaseUnityPlugin
	{
		internal static class ScrybeCompat
		{
			internal const string P03Guid = "zorro.inscryption.infiniscryption.p03kayceerun";

			internal const string P03Sigil = "zorro.inscryption.infiniscryption.p03sigillibrary";

			internal const string GrimoraGuid = "arackulele.inscryption.grimoramod";

			internal static CardMetaCategory NeutralRegion = GuidManager.GetEnumValue<CardMetaCategory>("zorro.inscryption.infiniscryption.p03kayceerun", "NeutralRegionCards");

			internal static CardMetaCategory NatureRegion = GuidManager.GetEnumValue<CardMetaCategory>("zorro.inscryption.infiniscryption.p03kayceerun", "NatureRegionCards");

			internal static CardMetaCategory TechRegion = GuidManager.GetEnumValue<CardMetaCategory>("zorro.inscryption.infiniscryption.p03kayceerun", "TechRegionCards");

			internal static CardMetaCategory WizardRegion = GuidManager.GetEnumValue<CardMetaCategory>("zorro.inscryption.infiniscryption.p03kayceerun", "WizardRegionCards");

			internal static CardMetaCategory UndeadRegion = GuidManager.GetEnumValue<CardMetaCategory>("zorro.inscryption.infiniscryption.p03kayceerun", "UndeadRegionCards");

			internal static bool GrimoraEnabled => Chainloader.PluginInfos.ContainsKey("arackulele.inscryption.grimoramod");

			internal static bool P03Enabled => Chainloader.PluginInfos.ContainsKey("zorro.inscryption.infiniscryption.p03kayceerun");

			internal static bool P03SigilsEnabled => Chainloader.PluginInfos.ContainsKey("zorro.inscryption.infiniscryption.p03sigillibrary");

			public static bool IsP03Run
			{
				get
				{
					if (P03Enabled && SaveFile.IsAscension)
					{
						return SaveManager.SaveFile.IsPart3;
					}
					return false;
				}
			}

			public static bool IsGrimoraRun
			{
				get
				{
					if (GrimoraEnabled && SaveFile.IsAscension)
					{
						return SaveManager.SaveFile.IsGrimora;
					}
					return false;
				}
			}

			internal static bool IsMagnificusRun => false;

			internal static Ability GetGrimoraAbility(string rulebookName, Ability fallback)
			{
				//IL_0013: Unknown result type (might be due to invalid IL or missing references)
				//IL_000d: Unknown result type (might be due to invalid IL or missing references)
				if (GrimoraEnabled)
				{
					return GuidManager.GetEnumValue<Ability>("arackulele.inscryption.grimoramod", rulebookName);
				}
				return fallback;
			}

			internal static Ability GetP03Ability(string rulebookName, Ability fallback)
			{
				//IL_0013: Unknown result type (might be due to invalid IL or missing references)
				//IL_000d: Unknown result type (might be due to invalid IL or missing references)
				if (P03SigilsEnabled)
				{
					return GuidManager.GetEnumValue<Ability>("zorro.inscryption.infiniscryption.p03sigillibrary", rulebookName);
				}
				return fallback;
			}

			internal static Ability GetP03RunAbility(string rulebookName, Ability fallback)
			{
				//IL_0013: Unknown result type (might be due to invalid IL or missing references)
				//IL_000d: Unknown result type (might be due to invalid IL or missing references)
				if (P03Enabled)
				{
					return GuidManager.GetEnumValue<Ability>("zorro.inscryption.infiniscryption.p03kayceerun", rulebookName);
				}
				return fallback;
			}

			internal static Type GetP03Boss(string name, Type fallback)
			{
				//IL_0013: Unknown result type (might be due to invalid IL or missing references)
				//IL_000d: Unknown result type (might be due to invalid IL or missing references)
				if (P03Enabled)
				{
					return GuidManager.GetEnumValue<Type>("zorro.inscryption.infiniscryption.p03kayceerun", name);
				}
				return fallback;
			}

			internal static void SetFuel(CardInfo card, int fuel)
			{
				CardExtensions.SetExtendedProperty(card, "FuelManager.StartingFuel", (object)Mathf.Min(4, fuel));
			}

			internal static void AddPart3Decal(CardInfo card, Texture2D decal)
			{
				CustomCards.AddPart3Decal(card, decal);
			}
		}

		public static readonly List<CardInfo> Act1Cards = new List<CardInfo>();

		public static readonly List<CardInfo> GrimoraCards = new List<CardInfo>();

		public static readonly List<CardInfo> P03Cards = new List<CardInfo>();

		internal static ConfigEntry<bool> BingusCrash;

		internal static ConfigEntry<bool> SplitByAct;

		internal static List<AudioClip> AudioClips;

		private static readonly Harmony HarmonyInstance = new Harmony("whistlewind.inscryption.bonniesbakingpack");

		internal static ManualLogSource Log;

		internal static Assembly Assembly;

		internal static ConfigFile Configs;

		public const string pluginGuid = "whistlewind.inscryption.bonniesbakingpack";

		public const string pluginPrefix = "bbp_act1";

		public const string pluginPrefixG = "bbp_grimora";

		public const string pluginPrefix3 = "bbp_act3";

		public const string pluginPrefixM = "bbp_magnificus";

		public const string pluginName = "Bonnie's Baking Pack";

		private const string pluginVersion = "1.0.0";

		private void AddAbilities()
		{
			//IL_005a: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: 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_00a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0109: Unknown result type (might be due to invalid IL or missing references)
			//IL_010e: Unknown result type (might be due to invalid IL or missing references)
			//IL_012c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0131: Unknown result type (might be due to invalid IL or missing references)
			//IL_014f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0154: Unknown result type (might be due to invalid IL or missing references)
			//IL_0172: Unknown result type (might be due to invalid IL or missing references)
			//IL_0177: Unknown result type (might be due to invalid IL or missing references)
			AddFreshFood();
			AddFreshIngredients();
			StatIconInfo val = AbilityExtensions.SetDefaultPart1Ability(AbilityExtensions.SetAppliesToStats(AbilityExtensions.SetIcon(AbilityExtensions.SetRulebookInfo(ScriptableObject.CreateInstance<StatIconInfo>(), "Infinity", "The value represented with this sigil will be equal to the concept of infinity."), GetTexture("infiniteSigil.png"), (FilterMode?)null), true, true));
			BingusStatIcon.Icon = StatIconManager.Add("whistlewind.inscryption.bonniesbakingpack", val, typeof(BingusStatIcon)).Id;
			BingusAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BingusAbility", typeof(BingusAbility)).Id;
			BonnieAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BonnieAbility", typeof(BonnieAbility)).Id;
			BunnieAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BunnieAbility", typeof(BunnieAbility)).Id;
			BonnieDiskAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BonnieDiskAbility", typeof(BonnieDiskAbility)).Id;
			BunnieDiskAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BunnieDiskAbility", typeof(BunnieDiskAbility)).Id;
			PandaAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "PandaAbility", typeof(PandaAbility)).Id;
			NineAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "NineAbility", typeof(NineAbility)).Id;
			DuckRabbitAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "DuckitAbility", typeof(DuckRabbitAbility)).Id;
		}

		private void AddFreshFood()
		{
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			FreshFood.ability = AbilityExtensions.AddMetaCategories(AbilityExtensions.SetPixelAbilityIcon(AbilityExtensions.SetActivated(AbilityExtensions.SetPowerlevel(AbilityExtensions.SetGBCTriggerText(AbilityExtensions.SetAbilityLearnedDialogue(AbilityManager.New("whistlewind.inscryption.bonniesbakingpack", "Fresh Food", "Remove this card from the board. At the start of the owner's next turn, a Bunnie is created in your hand.\n\nWhen this card is drawn, create a random Food in your hand.", typeof(FreshFood), (Texture)(object)GetTexture("sigilFreshFood.png")), new string[1] { "A freshly baked confectionary, made with love and care." }), "[creature] books it!"), 3), true), GetTexture("sigilFreshFood_pixel.png"), (FilterMode?)null), (AbilityMetaCategory[])(object)new AbilityMetaCategory[2]
			{
				default(AbilityMetaCategory),
				(AbilityMetaCategory)2
			}).ability;
		}

		private void AddFreshIngredients()
		{
			//IL_0068: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			FreshIngredients.ability = AbilityExtensions.AddMetaCategories(AbilityExtensions.SetPixelAbilityIcon(AbilityExtensions.SetPowerlevel(AbilityExtensions.SetAbilityLearnedDialogue(AbilityManager.New("whistlewind.inscryption.bonniesbakingpack", "Fresh Ingredients", "When [creature] attacks a card and it perishes, create a random Food in your hand and gain 1 Bone.", typeof(FreshIngredients), (Texture)(object)GetTexture("sigilFreshIngredients.png")), new string[1] { "Made with the freshest ingredients." }), 4), GetTexture("sigilFreshIngredients_pixel.png"), (FilterMode?)null), (AbilityMetaCategory[])(object)new AbilityMetaCategory[2]
			{
				default(AbilityMetaCategory),
				(AbilityMetaCategory)2
			}).ability;
		}

		private void AddCards()
		{
			//IL_0073: 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_0091: Unknown result type (might be due to invalid IL or missing references)
			//IL_0096: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00da: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_010e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0146: Unknown result type (might be due to invalid IL or missing references)
			CreateFood();
			CreateBonnie();
			CreateBunnie();
			CreateBonnieDisk();
			CreateBunnieDisk();
			CreateBingus();
			CreateMice();
			CreateMeanMice();
			CreateLoudMice();
			CreatePhoneMice();
			CreatePoliceWolves();
			CreateCats();
			CreateDogs();
			CreateBunnies();
			CreatePandas();
			CreateMoose();
			CreatePirates();
			CreateProtagonists();
			CreateEtherealLadies();
			Tribe val = (Tribe)0;
			Tribe item = (Tribe)0;
			if (Chainloader.PluginInfos.ContainsKey("Lily.BOT"))
			{
				val = GuidManager.GetEnumValue<Tribe>("Lily.BOT", "rodent");
				item = GuidManager.GetEnumValue<Tribe>("Lily.BOT", "feline");
			}
			else if (Chainloader.PluginInfos.ContainsKey("tribes.libary"))
			{
				val = GuidManager.GetEnumValue<Tribe>("tribes.libary", "rodent");
				item = GuidManager.GetEnumValue<Tribe>("tribes.libary", "feline");
			}
			if ((int)val == 0)
			{
				return;
			}
			foreach (CardInfo act1Card in Act1Cards)
			{
				if (((Object)act1Card).name.StartsWith("bbp_act1_mouse"))
				{
					act1Card.tribes = new List<Tribe> { val };
				}
				else if (((Object)act1Card).name.EndsWith("cat") || ((Object)act1Card).name.EndsWith("pirate"))
				{
					act1Card.tribes = new List<Tribe> { item };
				}
			}
		}

		private void Awake()
		{
			Log = ((BaseUnityPlugin)this).Logger;
			Configs = ((BaseUnityPlugin)this).Config;
			Assembly = Assembly.GetExecutingAssembly();
			SplitByAct = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "All Acts", false, "Should each Scrybe's card pack be choosable in any act?");
			BingusCrash = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "Bingus Flubbed It", false, "Has Bingus been played for the first time?");
			HarmonyInstance.PatchAll(Assembly);
			if (ScrybeCompat.GrimoraEnabled)
			{
				HarmonyInstance.PatchAll(typeof(GrimoraPatches));
			}
			if (ScrybeCompat.P03SigilsEnabled)
			{
				HarmonyInstance.PatchAll(typeof(P03Patches));
				BonnieAct3.Register();
				HarmonyInstance.PatchAll(typeof(BonnieAct3));
			}
			AddAbilities();
			LadyAbility.Add();
			AbilityManager.ModifyAbilityList += delegate(List<FullAbility> abilities)
			{
				AbilityExtensions.AddMetaCategories(abilities.Find((FullAbility x) => (int)x.Id == 14).Info, (AbilityMetaCategory[])(object)new AbilityMetaCategory[1]);
				AbilityExtensions.AddMetaCategories(abilities.Find((FullAbility x) => (int)x.Id == 51).Info, (AbilityMetaCategory[])(object)new AbilityMetaCategory[1]);
				AbilityExtensions.AddMetaCategories(abilities.Find((FullAbility x) => (int)x.Id == 62).Info, (AbilityMetaCategory[])(object)new AbilityMetaCategory[1]);
				if (ScrybeCompat.GrimoraEnabled)
				{
					FullAbility? obj = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetGrimoraAbility("Haunting Call", (Ability)0));
					if (obj != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj.Info, GetTexture("hauntingCall_pixel.png"), (FilterMode?)null);
					}
					FullAbility? obj2 = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetGrimoraAbility("Skin Crawler", (Ability)0));
					if (obj2 != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj2.Info, GetTexture("skinCrawler_pixel.png"), (FilterMode?)null);
					}
					FullAbility? obj3 = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetGrimoraAbility("Slasher", (Ability)0));
					if (obj3 != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj3.Info, GetTexture("slasher_pixel.png"), (FilterMode?)null);
					}
				}
				if (ScrybeCompat.P03SigilsEnabled)
				{
					FullAbility? obj4 = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetP03Ability("Fire Strike When Fueled", (Ability)0));
					if (obj4 != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj4.Info, GetTexture("fireWhenFueled_pixel.png"), (FilterMode?)null);
					}
					FullAbility? obj5 = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetP03Ability("Fuel Siphon", (Ability)0));
					if (obj5 != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj5.Info, GetTexture("fuelSiphon_pixel.png"), (FilterMode?)null);
					}
					FullAbility? obj6 = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetP03Ability("Electric", (Ability)0));
					if (obj6 != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj6.Info, GetTexture("electric_pixel.png"), (FilterMode?)null);
					}
					FullAbility? obj7 = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetP03Ability("Tinkerer", (Ability)0));
					if (obj7 != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj7.Info, GetTexture("tinkerer_pixel.png"), (FilterMode?)null);
					}
				}
				return abilities;
			};
			AddCards();
			StarterDeckManager.New("whistlewind.inscryption.bonniesbakingpack", "Basic Baking Pack", GetTexture("starterDeck.png"), new string[3] { "bbp_act1_bonnie", "bbp_act1_meetBun", "bbp_act1_whiteDonut" }, 0);
			StarterDeckManager.New("whistlewind.inscryption.bonniesbakingpack", "Bony Baking Pack", GetTexture("starterDeck2.png"), new string[5] { "bbp_grimora_whiteDonut", "bbp_grimora_whiteDonut", "bbp_grimora_mouseGhool", "bbp_grimora_mousenapper", "bbp_grimora_killerMouse" }, 0);
			StarterDeckManager.New("whistlewind.inscryption.bonniesbakingpack", "Bot Baking Pack", GetTexture("starterDeck3.png"), new string[4] { "bbp_act3_phoneMouse", "bbp_act3_anonymouse", "bbp_act3_copstable", "bbp_act3_copstable" }, 0);
			StarterDeckManager.ModifyDeckList += delegate(List<FullStarterDeck> decks)
			{
				if (!ScrybeCompat.GrimoraEnabled)
				{
					decks.RemoveAll((FullStarterDeck x) => x.Info.title == "Bony Baking Pack");
				}
				if (!ScrybeCompat.P03Enabled)
				{
					decks.RemoveAll((FullStarterDeck x) => x.Info.title == "Bot Baking Pack");
				}
				return decks;
			};
			CreateCardPack();
			AssetBundle val = AssetBundle.LoadFromStream(Assembly.GetManifestResourceStream("BonniesBakingPack.bonniebaking"));
			AudioClips = new List<AudioClip>
			{
				val.LoadAsset<AudioClip>("bonnie_bonk"),
				val.LoadAsset<AudioClip>("panda_gun")
			};
			Log.LogInfo((object)"Loaded Bonnie's Baking Pack. It's baking time!");
		}

		private static void CreateCardPack()
		{
			PackInfo packInfo = PackManager.GetPackInfo<PackInfo>("bbp_act1");
			((PackInfoBase)packInfo).Title = "Bonnie's Baking Pack";
			((PackInfoBase)packInfo).SetTexture(TextureHelper.GetImageAsTexture("bbp_pack.png", Assembly, (FilterMode)0));
			((PackInfoBase)packInfo).Description = "14 delicious ingredients for all your pastry-making needs!";
			((PackInfoBase)packInfo).ValidFor.Clear();
			((PackInfoBase)packInfo).ValidFor.Add((PackMetacategory)0);
			PackInfo packInfo2 = PackManager.GetPackInfo<PackInfo>("bbp_grimora");
			((PackInfoBase)packInfo2).Title = "Bonnie's Bony Pack";
			((PackInfoBase)packInfo2).SetTexture(TextureHelper.GetImageAsTexture("bbp_pack_grimora.png", Assembly, (FilterMode)0));
			((PackInfoBase)packInfo2).Description = "14 devilish ingredients for all your grave-raising needs! Now featuring ghosts and ghoulies!";
			((PackInfoBase)packInfo2).ValidFor.Clear();
			((PackInfoBase)packInfo2).ValidFor.Add((PackMetacategory)2);
			PackInfo packInfo3 = PackManager.GetPackInfo<PackInfo>("bbp_act3");
			((PackInfoBase)packInfo3).Title = "Bonnie's Bot Pack";
			((PackInfoBase)packInfo3).SetTexture(TextureHelper.GetImageAsTexture("bbp_pack_act3.png", Assembly, (FilterMode)0));
			((PackInfoBase)packInfo3).Description = "14 dismantled ingredients for all your manufacturing needs! Allergy warning: contains nuts and bolts.";
			((PackInfoBase)packInfo3).ValidFor.Clear();
			((PackInfoBase)packInfo3).ValidFor.Add((PackMetacategory)1);
			if (SplitByAct.Value)
			{
				Debug.Log((object)"All");
				((PackInfoBase)packInfo).ValidFor.Add((PackMetacategory)2);
				((PackInfoBase)packInfo).ValidFor.Add((PackMetacategory)1);
				((PackInfoBase)packInfo2).ValidFor.Add((PackMetacategory)0);
				((PackInfoBase)packInfo2).ValidFor.Add((PackMetacategory)1);
				((PackInfoBase)packInfo3).ValidFor.Add((PackMetacategory)0);
				((PackInfoBase)packInfo3).ValidFor.Add((PackMetacategory)2);
			}
		}

		internal static Texture2D GetTexture(string fileName)
		{
			return TextureHelper.GetImageAsTexture(fileName, Assembly, (FilterMode)0);
		}

		internal static FaceAnim MakeFaceAnim(string openName, string closedName = null)
		{
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0070: Unknown result type (might be due to invalid IL or missing references)
			//IL_0076: Expected O, but got Unknown
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_0068: Unknown result type (might be due to invalid IL or missing references)
			//IL_006e: Expected O, but got Unknown
			Texture2D texture = GetTexture(openName);
			Rect val = default(Rect);
			((Rect)(ref val))..ctor(0f, 0f, (float)((Texture)texture).width, (float)((Texture)texture).height);
			Sprite val2 = Sprite.Create(texture, val, new Vector2(0.5f, 0f), 100f);
			if (closedName != null)
			{
				Sprite val3 = Sprite.Create(GetTexture(closedName), val, new Vector2(0.5f, 0f), 100f);
				return new FaceAnim(val2, val3);
			}
			return new FaceAnim(val2, (Sprite)null);
		}

		internal static CustomLine NewLine(string dialogue, Emotion emotion)
		{
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			CustomLine result = default(CustomLine);
			((CustomLine)(ref result))..ctor();
			result.text = dialogue;
			result.emotion = emotion;
			return result;
		}

		private void OnDisable()
		{
			HarmonyInstance.UnpatchSelf();
		}

		private void CreateBingus()
		{
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0050: Unknown result type (might be due to invalid IL or missing references)
			//IL_005a: Expected O, but got Unknown
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Expected O, but got Unknown
			//IL_0082: Unknown result type (might be due to invalid IL or missing references)
			//IL_0088: Expected O, but got Unknown
			//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
			Sprite val = TextureHelper.ConvertTexture(TextureHelper.GetImageAsTexture("bingus.png", Assembly, (FilterMode)0), (Vector2?)new Vector2(0.5f, 0f));
			List<EmotionData> list = new List<EmotionData>
			{
				new EmotionData((Emotion)0, val, FaceAnim.op_Implicit(GeneratePortrait.EmptyPortraitTuple), FaceAnim.op_Implicit(GeneratePortrait.EmptyPortraitTuple), FaceAnim.op_Implicit(GeneratePortrait.EmptyPortraitTuple))
			};
			FaceInfo val2 = new FaceInfo((float?)null, "female1_voice", (float?)null, (string)null);
			FaceData val3 = new FaceData("bbp_act1_bingus", list, val2);
			CardInfo obj = CardExtensions.SetStatIcon(CardExtensions.RemoveAppearances(CardExtensions.SetRare(CardExtensions.SetPixelPortrait(CardManager.New("bbp_act1", "bingus", "Bingus", 0, 0, "I must admit I do not know what this thing is."), GetTexture("bingus_pixel.png"), (FilterMode?)null)), (Appearance[])(object)new Appearance[1] { (Appearance)7 }), BingusStatIcon.Icon);
			Trait[] array = new Trait[5];
			RuntimeHelpers.InitializeArray(array, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/);
			CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(obj, (Trait[])(object)array), true);
			TalkingCardManager.Create(val3, BingusAbility.SpecialAbility);
		}

		private void CreateBonnie()
		{
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0048: Expected I4, but got Unknown
			//IL_007f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0090: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0111: Unknown result type (might be due to invalid IL or missing references)
			//IL_012d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0149: Unknown result type (might be due to invalid IL or missing references)
			//IL_0165: Unknown result type (might be due to invalid IL or missing references)
			//IL_0192: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0213: Unknown result type (might be due to invalid IL or missing references)
			//IL_022f: Unknown result type (might be due to invalid IL or missing references)
			//IL_025c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0278: Unknown result type (might be due to invalid IL or missing references)
			//IL_0294: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_02cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0315: Unknown result type (might be due to invalid IL or missing references)
			//IL_0326: Unknown result type (might be due to invalid IL or missing references)
			//IL_0342: Unknown result type (might be due to invalid IL or missing references)
			//IL_035e: Unknown result type (might be due to invalid IL or missing references)
			//IL_037a: Unknown result type (might be due to invalid IL or missing references)
			//IL_03a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_03d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_03f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_040c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0439: Unknown result type (might be due to invalid IL or missing references)
			//IL_0455: Unknown result type (might be due to invalid IL or missing references)
			//IL_0466: Unknown result type (might be due to invalid IL or missing references)
			//IL_0482: Unknown result type (might be due to invalid IL or missing references)
			//IL_049e: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_04e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0514: Unknown result type (might be due to invalid IL or missing references)
			//IL_0525: Unknown result type (might be due to invalid IL or missing references)
			//IL_0541: Unknown result type (might be due to invalid IL or missing references)
			//IL_055d: Unknown result type (might be due to invalid IL or missing references)
			//IL_058a: Unknown result type (might be due to invalid IL or missing references)
			//IL_059b: Unknown result type (might be due to invalid IL or missing references)
			//IL_05b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_05d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_061c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0638: Unknown result type (might be due to invalid IL or missing references)
			//IL_0654: Unknown result type (might be due to invalid IL or missing references)
			//IL_0670: Unknown result type (might be due to invalid IL or missing references)
			//IL_069d: Unknown result type (might be due to invalid IL or missing references)
			//IL_06b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_06d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_06e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0702: Unknown result type (might be due to invalid IL or missing references)
			CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetBloodCost(CardManager.New("bbp_act1", "bonnie", "Bonnie", 1, 1, (string)null), (int?)1), GetTexture("bonnie_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)FreshFood.ability }), (Trait[])(object)new Trait[1] { (Trait)19 }), true);
			TalkingCardManager.New<BonnieAbility>();
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieDrawn", new List<CustomLine>
			{
				NewLine("Hello there!", (Emotion)1),
				NewLine("Not sure what's happening...", (Emotion)3)
			}, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Hello again!", (Emotion)0) },
				new List<CustomLine> { NewLine("Good morning!", (Emotion)1) },
				new List<CustomLine> { NewLine("", (Emotion)3) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonniePlayed", new List<CustomLine> { NewLine("Combat?!", (Emotion)4) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("I'm not dressed for this...", (Emotion)3) },
				new List<CustomLine> { NewLine("Can I sit this out?", (Emotion)5) },
				new List<CustomLine> { NewLine("Cute animals!!!", (Emotion)1) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieHurt", new List<CustomLine> { NewLine("Ow!", (Emotion)5) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Ah!", (Emotion)5) },
				new List<CustomLine> { NewLine("Ouch!", (Emotion)5) },
				new List<CustomLine> { NewLine("Ow!", (Emotion)5) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieSacrificed", new List<CustomLine> { NewLine("...", (Emotion)2) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("...", (Emotion)2) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieSelectableGood", new List<CustomLine> { NewLine("What's this?", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("You can pick someone else, I won't mind!", (Emotion)0) },
				new List<CustomLine> { NewLine("So mysterious...", (Emotion)3) },
				new List<CustomLine> { NewLine("I hope something good happens!", (Emotion)0) },
				new List<CustomLine> { NewLine("Won't be as good as my food, hehe!", (Emotion)1) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieSelectableGood", new List<CustomLine> { NewLine("...What's this?", (Emotion)3) }, new List<List<CustomLine>>
			{
				new List<CustomLine>
				{
					NewLine("You can pick someone else.", (Emotion)3),
					NewLine("I won't mind.", (Emotion)0)
				},
				new List<CustomLine> { NewLine("...", (Emotion)2) },
				new List<CustomLine> { NewLine("You won't do anything bad, right?", (Emotion)0) },
				new List<CustomLine> { NewLine("Why this way?", (Emotion)3) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieTrial", new List<CustomLine>
			{
				NewLine("A trial, huh...", (Emotion)3),
				NewLine("I don't think I'll be much help.", (Emotion)0)
			}, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("At least it's not a court trial, haha!", (Emotion)1) },
				new List<CustomLine> { NewLine("I don't think I'll be much help.", (Emotion)0) },
				new List<CustomLine> { NewLine("Maybe I can do it?", (Emotion)5) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieProspector", new List<CustomLine> { NewLine("What a funny old dog!", (Emotion)1) }, new List<List<CustomLine>>
			{
				new List<CustomLine>
				{
					NewLine("Dogs owning dogs?", (Emotion)0),
					NewLine("What a world!", (Emotion)1)
				},
				new List<CustomLine> { NewLine("What a funny old dog!", (Emotion)1) },
				new List<CustomLine> { NewLine("Careful, his pickaxe is sharp!", (Emotion)0) },
				new List<CustomLine> { NewLine("Git 'em!", (Emotion)1) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieAngler", new List<CustomLine>
			{
				NewLine("Ew, it smells!", (Emotion)5),
				NewLine("Clean your workstation!", (Emotion)5)
			}, new List<List<CustomLine>>
			{
				new List<CustomLine>
				{
					NewLine("I've never made fish pastries before...", (Emotion)0),
					NewLine("...or any other kind of meat pastry.", (Emotion)2)
				},
				new List<CustomLine> { NewLine("That's the biggest hook I've seen!", (Emotion)4) },
				new List<CustomLine> { NewLine("Can I debone him when we're done?", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieTrapperTrader", new List<CustomLine>
			{
				NewLine("I can't imagine skinning animals.", (Emotion)4),
				NewLine("What an awful bear!", (Emotion)4)
			}, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Just another butcher...", (Emotion)2) },
				new List<CustomLine> { NewLine("...am I like this?", (Emotion)2) },
				new List<CustomLine> { NewLine("Maybe he's just protecting his dream.", (Emotion)3) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieLeshy", new List<CustomLine> { NewLine("So he's the one controlling all this?", (Emotion)3) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Let me help!", (Emotion)0) },
				new List<CustomLine> { NewLine("So he's, like, a tree?", (Emotion)3) },
				new List<CustomLine> { NewLine("Let's kick the moon's butt!", (Emotion)1) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieRoyal", new List<CustomLine> { NewLine("A...pirate?", (Emotion)3) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("What big cannons...", (Emotion)3) },
				new List<CustomLine>
				{
					NewLine("No meat, huh?", (Emotion)2),
					NewLine("Uh, I mean...!", (Emotion)4)
				},
				new List<CustomLine> { NewLine("Yo-ho-ho!", (Emotion)1) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
		}

		private void CreateBonnieDisk()
		{
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0052: Expected I4, but got Unknown
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_009a: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_011b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0137: Unknown result type (might be due to invalid IL or missing references)
			//IL_0153: Unknown result type (might be due to invalid IL or missing references)
			//IL_016f: Unknown result type (might be due to invalid IL or missing references)
			//IL_019c: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_021d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0239: Unknown result type (might be due to invalid IL or missing references)
			//IL_0255: Unknown result type (might be due to invalid IL or missing references)
			//IL_0271: Unknown result type (might be due to invalid IL or missing references)
			//IL_029e: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_031f: Unknown result type (might be due to invalid IL or missing references)
			//IL_033b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0357: Unknown result type (might be due to invalid IL or missing references)
			//IL_0373: Unknown result type (might be due to invalid IL or missing references)
			CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetRare(CardExtensions.SetBloodCost(CardManager.New("bbp_act3", "bonnie", "Bonnie", 1, 1, (string)null), (int?)1).AddP03()), GetTexture("bonnie_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)FreshFood.ability }), (Trait[])(object)new Trait[1] { (Trait)19 }), true);
			TalkingCardManager.New<BonnieDiskAbility>();
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonniePhotographer", new List<CustomLine>
			{
				NewLine("I should get some photos", (Emotion)0),
				NewLine("for the bakery.", (Emotion)0)
			}, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("I hope my picture comes out good.", (Emotion)3) },
				new List<CustomLine> { NewLine("Make sure you get my good side!", (Emotion)4) },
				new List<CustomLine> { NewLine("I should buy a camera.", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieArchivist", new List<CustomLine> { NewLine("Not much of a library, huh?", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("This librarian's pretty scary.", (Emotion)0) },
				new List<CustomLine> { NewLine("Where are the books?", (Emotion)3) },
				new List<CustomLine> { NewLine("I prefer physical media, personally.", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieTelegrapher", new List<CustomLine> { NewLine("This one seems nice!", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Hi Golly!", (Emotion)1) },
				new List<CustomLine> { NewLine("What's crypto?", (Emotion)3) },
				new List<CustomLine> { NewLine("Maybe I should get a computer.", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieCanvas", new List<CustomLine> { NewLine("Ooh, I love art!", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("I hope you made something good.", (Emotion)0) },
				new List<CustomLine> { NewLine("Kinda looks like my kitchen.", (Emotion)1) },
				new List<CustomLine> { NewLine("Could I try next time?", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieFinalP03", new List<CustomLine> { NewLine("How do you kill a robot?", (Emotion)3) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Ugh, this meanie.", (Emotion)3) },
				new List<CustomLine> { NewLine("So smug...", (Emotion)2) },
				new List<CustomLine> { NewLine("Beep-boop!", (Emotion)1) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BonnieMultiverseP03", new List<CustomLine> { NewLine("What does it mean by 'mod'?", (Emotion)4) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("I wonder if there's another me?", (Emotion)5) },
				new List<CustomLine> { NewLine("That smug face...", (Emotion)2) },
				new List<CustomLine> { NewLine("Beep-boop!", (Emotion)1) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
		}

		private void CreateBunnie()
		{
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Expected I4, but got Unknown
			//IL_006b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0087: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ec: Unknown result type (might be due to invalid IL or missing references)
			//IL_0108: Unknown result type (might be due to invalid IL or missing references)
			//IL_0124: Unknown result type (might be due to invalid IL or missing references)
			//IL_0140: Unknown result type (might be due to invalid IL or missing references)
			//IL_016d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0189: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_020a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0226: Unknown result type (might be due to invalid IL or missing references)
			//IL_0242: Unknown result type (might be due to invalid IL or missing references)
			//IL_025e: Unknown result type (might be due to invalid IL or missing references)
			//IL_028b: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_031d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0339: Unknown result type (might be due to invalid IL or missing references)
			//IL_0355: Unknown result type (might be due to invalid IL or missing references)
			//IL_0371: Unknown result type (might be due to invalid IL or missing references)
			//IL_0382: Unknown result type (might be due to invalid IL or missing references)
			//IL_03af: Unknown result type (might be due to invalid IL or missing references)
			//IL_03cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_03e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_03f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0414: Unknown result type (might be due to invalid IL or missing references)
			CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(CardExtensions.AddAbilities(CardExtensions.SetBloodCost(CardManager.New("bbp_act1", "bunnie", "Bunnie", 2, 2, ""), (int?)1), (Ability[])(object)new Ability[1] { (Ability)(int)FreshIngredients.ability }), (Trait[])(object)new Trait[1] { (Trait)19 }), true);
			TalkingCardManager.New<BunnieAbility>();
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieDrawn", new List<CustomLine> { NewLine("Hello ag- for the time!", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Is it time to restock?", (Emotion)0) },
				new List<CustomLine> { NewLine("Good morning!", (Emotion)0) },
				new List<CustomLine> { NewLine("Hello again!", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunniePlayed", new List<CustomLine> { NewLine("Fresh ingredients.", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Good thing I made this mask!", (Emotion)0) },
				new List<CustomLine> { NewLine("Fresh ingredients.", (Emotion)0) },
				new List<CustomLine> { NewLine("Everyone here's so mean.", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieProspector", new List<CustomLine> { NewLine("Crazy old old.", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Crazy old dog.", (Emotion)0) },
				new List<CustomLine> { NewLine("What a funny old dog!", (Emotion)0) },
				new List<CustomLine> { NewLine("Watch out for that pickaxe.", (Emotion)0) },
				new List<CustomLine> { NewLine("Lemme git 'em.", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieAngler", new List<CustomLine> { NewLine("Ew, it smells!", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("I've never made fish pastries before...", (Emotion)0) },
				new List<CustomLine> { NewLine("What a big hook.", (Emotion)0) },
				new List<CustomLine> { NewLine("Can I debone him when we're done?", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieTrapperTrader", new List<CustomLine> { NewLine("I could learn a thing or two from him.", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("What messy cuts.", (Emotion)2) },
				new List<CustomLine>
				{
					NewLine("We do what we must.", (Emotion)0),
					NewLine("To protect our dream.", (Emotion)0)
				},
				new List<CustomLine> { NewLine("So two-faced!", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieLeshy", new List<CustomLine> { NewLine("So he's the one controlling all this?", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("I wonder if those are tea leaves.", (Emotion)0) },
				new List<CustomLine> { NewLine("No strings on me!", (Emotion)0) },
				new List<CustomLine>
				{
					NewLine("Is the moon cuttable?", (Emotion)0),
					NewLine("...well it is made of cheese.", (Emotion)0)
				}
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieRoyal", new List<CustomLine> { NewLine("Walk the plank.", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("What big cannons...", (Emotion)0) },
				new List<CustomLine>
				{
					NewLine("No meat.", (Emotion)0),
					NewLine("Plenty of bones, though.", (Emotion)0)
				},
				new List<CustomLine> { NewLine("Yo-ho-ho!", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
		}

		private void CreateBunnieDisk()
		{
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Expected I4, but got Unknown
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0112: Unknown result type (might be due to invalid IL or missing references)
			//IL_012e: Unknown result type (might be due to invalid IL or missing references)
			//IL_014a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0177: Unknown result type (might be due to invalid IL or missing references)
			//IL_0193: Unknown result type (might be due to invalid IL or missing references)
			//IL_01af: Unknown result type (might be due to invalid IL or missing references)
			//IL_01dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0214: Unknown result type (might be due to invalid IL or missing references)
			//IL_0230: Unknown result type (might be due to invalid IL or missing references)
			//IL_025d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0279: Unknown result type (might be due to invalid IL or missing references)
			//IL_0295: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b1: Unknown result type (might be due to invalid IL or missing references)
			CardExtensions.RemoveCardMetaCategories(CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(CardExtensions.AddAbilities(CardExtensions.SetRare(CardExtensions.SetBloodCost(CardManager.New("bbp_act3", "bunnie", "Bunnie", 2, 2, ""), (int?)1).AddP03()), (Ability[])(object)new Ability[1] { (Ability)(int)FreshIngredients.ability }), (Trait[])(object)new Trait[1] { (Trait)19 }), true), (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)3 });
			TalkingCardManager.New<BunnieDiskAbility>();
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunniePhotographer", new List<CustomLine> { NewLine("No photographs.", (Emotion)0) }, (List<List<CustomLine>>)null, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieArchivist", new List<CustomLine> { NewLine("Need to dispose of evidence...", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("No records.", (Emotion)0) },
				new List<CustomLine> { NewLine("Where are the books?", (Emotion)3) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieTelegrapher", new List<CustomLine> { NewLine("Just another bot.", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("I kinda feel bad...", (Emotion)0) },
				new List<CustomLine> { NewLine("How much is crypto worth?", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieCanvas", new List<CustomLine> { NewLine("How passé.", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("I hope you made something good.", (Emotion)0) },
				new List<CustomLine> { NewLine("Looks like a child's painting.", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieFinalP03", new List<CustomLine> { NewLine("One more left.", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Off with its head.", (Emotion)0) },
				new List<CustomLine> { NewLine("I'm gonna wipe that smirk from its face.", (Emotion)2) },
				new List<CustomLine> { NewLine("Beep-boop.", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieMultiverseP03", new List<CustomLine> { NewLine("", (Emotion)0) }, new List<List<CustomLine>>
			{
				new List<CustomLine> { NewLine("Off with its head.", (Emotion)0) },
				new List<CustomLine> { NewLine("I'm gonna wipe that smirk from its face.", (Emotion)2) },
				new List<CustomLine> { NewLine("Beep-boop.", (Emotion)0) }
			}, (MaxRepeatsBehaviour)0, (Speaker)0);
		}

		private void CreateBunnies()
		{
			//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e6: Expected I4, but got Unknown
			//IL_00fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_0100: Expected I4, but got Unknown
			//IL_0158: Unknown result type (might be due to invalid IL or missing references)
			//IL_015e: Expected I4, but got Unknown
			//IL_0167: Unknown result type (might be due to invalid IL or missing references)
			//IL_016d: Expected I4, but got Unknown
			//IL_0183: Unknown result type (might be due to invalid IL or missing references)
			//IL_0189: Expected I4, but got Unknown
			//IL_0198: Unknown result type (might be due to invalid IL or missing references)
			//IL_019e: Expected I4, but got Unknown
			//IL_01ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b3: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "bunny", "Bunny", 1, 2, "A delivery driver with a missing sister. Perhaps you've seen her?")).AddAct1(), (int?)1), GetTexture("bunny.png"), GetTexture("bunny_emission.png"), (FilterMode?)null), GetTexture("bunny_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)51 });
			CardInfo val2 = CardExtensions.AddAbilities(CardExtensions.AddSpecialAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetBonesCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "duckit", "Duckit", 1, 2, "AN ENIGMATIC, TWO-FACED CREATURE. PERHAPS YOU KNOW ITS TRUE IDENTITY?")).AddGrimora(), (int?)2), (int?)2), GetTexture("duckit.png"), GetTexture("duckit_emission.png"), (FilterMode?)null), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)DuckRabbitAbility.SpecialAbility }), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetGrimoraAbility("Random Ability", (Ability)31) });
			CardInfo val3 = CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "bunbot", "Bunbot", 2, 1, (string)null)).AddP03(), (int?)4), GetTexture("bunbot.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)(int)ScrybeCompat.GetP03Ability("Hopper", (Ability)3),
				(Ability)(int)ScrybeCompat.GetP03Ability("Flammable", (Ability)52)
			});
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
			}
		}

		private void CreateCats()
		{
			//IL_00ea: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f0: Expected I4, but got Unknown
			//IL_014e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0154: Expected I4, but got Unknown
			//IL_016a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0170: Expected I4, but got Unknown
			//IL_017f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0185: Expected I4, but got Unknown
			//IL_0194: Unknown result type (might be due to invalid IL or missing references)
			//IL_019a: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBonesCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "cat", "Cat", 1, 1, "A refined cat with elite tastes, in more ways than one.")).AddAct1(), (int?)4), GetTexture("cat.png"), GetTexture("cat_emission.png"), (FilterMode?)null), GetTexture("cat_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)103 });
			CardInfo val2 = CardExtensions.AddSpecialAbilities(CardExtensions.AddAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBonesCost(CardExtensions.SetRare(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "nine", "Nine", 1, 1, "A REFINED FOX WAITING PATIENTLY FOR ITS TIME TO COME.")).AddGrimora()), (int?)2), GetTexture("nine.png"), GetTexture("nine_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)14 }), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)NineAbility.SpecialAbility });
			CardInfo val3 = CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "felinebot", "F4T C4T", 0, 2, (string)null)).AddP03(), (int?)3), GetTexture("felinebot.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)50,
				(Ability)(int)ScrybeCompat.GetP03RunAbility("Mine Cryptocurrency", (Ability)75)
			});
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.TechRegion });
			}
		}

		private void CreateDogs()
		{
			//IL_014a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0150: Expected I4, but got Unknown
			//IL_0159: Unknown result type (might be due to invalid IL or missing references)
			//IL_015f: Expected I4, but got Unknown
			//IL_0175: Unknown result type (might be due to invalid IL or missing references)
			//IL_017b: Expected I4, but got Unknown
			//IL_018a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0190: Expected I4, but got Unknown
			//IL_019f: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a5: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.AddTribes(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "dog", "Dog", 0, 2, "A diligent, if unappreciated, worker.")).AddAct1(), (int?)2), (Tribe[])(object)new Tribe[1] { (Tribe)3 }), GetTexture("dog.png"), GetTexture("dog_emission.png"), (FilterMode?)null), GetTexture("dog_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)18,
				(Ability)23
			});
			CardInfo val2 = CardExtensions.AddAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "doggone", "Doggone", 0, 2, "AN INSUBSTANTIAL EXISTENCE WHOSE ONLY CLAIM TO MEMORY IS THE SPACE IT TAKES UP. SURPRISINGLY SOLID.")).AddGrimora(), (int?)2), GetTexture("doggone.png"), GetTexture("doggone_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)18,
				(Ability)23
			});
			CardInfo val3 = CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "dogbot", "K9", 0, 2, (string)null)).AddP03(), (int?)3), GetTexture("dogbot.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)(int)ScrybeCompat.GetP03Ability("Launch Self", (Ability)78),
				(Ability)(int)ScrybeCompat.GetP03Ability("Solar Heart", (Ability)18)
			});
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.TechRegion });
			}
		}

		private void CreateEtherealLadies()
		{
			//IL_008c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0092: Expected I4, but got Unknown
			//IL_0134: Unknown result type (might be due to invalid IL or missing references)
			//IL_013a: Expected I4, but got Unknown
			//IL_01a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a7: Expected I4, but got Unknown
			//IL_01cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d1: Expected I4, but got Unknown
			//IL_01da: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e0: Expected I4, but got Unknown
			//IL_020d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0213: Expected I4, but got Unknown
			//IL_0222: Unknown result type (might be due to invalid IL or missing references)
			//IL_0228: Expected I4, but got Unknown
			//IL_0237: Unknown result type (might be due to invalid IL or missing references)
			//IL_023d: Expected I4, but got Unknown
			CardInfo val = CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(CardExtensions.AddAppearances(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetRare(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "etherealLady", "Ethereal Lady", 3, 1, "Under her protection, there will be no misery or strife.")).AddAct1()), (int?)3), GetTexture("etherealLady.png"), GetTexture("etherealLady_emission.png"), (FilterMode?)null), GetTexture("etherealLady_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)54,
				(Ability)33
			}), (Appearance[])(object)new Appearance[1] { (Appearance)(int)LadyAbility.CardAppearance }), (Trait[])(object)new Trait[1] { (Trait)21 }), true);
			CardInfo val2 = CardExtensions.SetOnePerDeck(CardExtensions.AddAbilities(CardExtensions.AddTraits(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetBonesCost(CardExtensions.SetRare(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "eternalLady", "Our Eternal Lady", 1, 1, "UNDER HER CARE THERE WILL BE NO SUFFERING OR DEATH.")).AddGrimora()), (int?)0), (int?)6), GetTexture("eternalLady.png"), GetTexture("eternalLady_emission.png"), (FilterMode?)null), (Trait[])(object)new Trait[1] { (Trait)21 }), (Ability[])(object)new Ability[2]
			{
				(Ability)14,
				(Ability)(int)ScrybeCompat.GetGrimoraAbility("Sculptor", (Ability)34)
			}), true);
			CardInfo val3 = CardExtensions.SetOnePerDeck(CardExtensions.AddAbilities(CardExtensions.AddTraits(CardExtensions.AddAppearances(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetRare(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "administrator", "Administrator", 1, 3, (string)null)).AddP03()), (int?)4), GetTexture("administrator.png"), GetTexture("administrator_emission.png"), (FilterMode?)null), (Appearance[])(object)new Appearance[1] { (Appearance)(int)LadyAbility.CardAppearance }), (Trait[])(object)new Trait[1] { (Trait)21 }), (Ability[])(object)new Ability[2]
			{
				(Ability)(int)ScrybeCompat.GetP03Ability("Button Pusher", (Ability)83),
				(Ability)(int)ScrybeCompat.GetP03Ability("Combat Research", (Ability)34)
			}), true);
			if (ScrybeCompat.P03Enabled)
			{
				ScrybeCompat.AddPart3Decal(val3, CardExtensions.GetEmissivePortrait(val3).texture);
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.TechRegion });
			}
		}

		private void CreateFood()
		{
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0064: Expected I4, but got Unknown
			//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ce: Expected I4, but got Unknown
			//IL_01b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bc: Expected I4, but got Unknown
			//IL_0237: Unknown result type (might be due to invalid IL or missing references)
			//IL_023d: Expected I4, but got Unknown
			//IL_02b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_02be: Expected I4, but got Unknown
			//IL_0321: Unknown result type (might be due to invalid IL or missing references)
			//IL_0327: Expected I4, but got Unknown
			//IL_0441: Unknown result type (might be due to invalid IL or missing references)
			//IL_0447: Expected I4, but got Unknown
			//IL_04a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_04aa: Expected I4, but got Unknown
			//IL_04b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_04b9: Expected I4, but got Unknown
			//IL_0589: Unknown result type (might be due to invalid IL or missing references)
			//IL_058f: Expected I4, but got Unknown
			//IL_0598: Unknown result type (might be due to invalid IL or missing references)
			//IL_059e: Expected I4, but got Unknown
			//IL_05d7: Unknown result type (might be due to invalid IL or missing references)
			//IL_05dd: Expected I4, but got Unknown
			//IL_0723: Unknown result type (might be due to invalid IL or missing references)
			//IL_0729: Expected I4, but got Unknown
			CardExtensions.SetTerrain(CardHelpers.SetTargetedSpellStats(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortrait(CardExtensions.SetBonesCost(CardManager.New("bbp_act1", "redVelvet", "Red Velvet", 1, 0, ""), (int?)2), GetTexture("redVelvet.png"), (FilterMode?)null), GetTexture("redVelvet_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)GiveStats.AbilityID })), false);
			CardHelpers.SetTargetedSpell(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_act3", "redVelvet", "Extra RAM", 0, 0, ""), (int?)2), (CardTemple)2), GetTexture("redVelvet_act3.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetP03Ability("Upgrade", (Ability)51) }));
			CardExtensions.SetTerrain(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortrait(CardExtensions.SetBonesCost(CardManager.New("bbp_act1", "whiteDonut", "White Donut", 0, 1, ""), (int?)1), GetTexture("whiteDonut.png"), (FilterMode?)null), GetTexture("whiteDonut_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)12 }), false);
			CardInfo val = CardHelpers.SetGlobalSpell(CardExtensions.AddAbilities(CardExtensions.SetEmissivePortrait(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_act3", "whiteDonut_red", "Red Noise", 0, 1, ""), (int?)2), (CardTemple)2), GetTexture("whiteDonut_act3.png"), (FilterMode?)null), GetTexture("whiteDonut_act3_red.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)38,
				(Ability)(int)ScrybeCompat.GetP03Ability("Magic Dust", (Ability)78)
			}));
			CardInfo val2 = CardHelpers.SetGlobalSpell(CardExtensions.AddAbilities(CardExtensions.SetEmissivePortrait(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_act3", "whiteDonut_green", "Green Noise", 0, 1, ""), (int?)2), (CardTemple)2), GetTexture("whiteDonut_act3.png"), (FilterMode?)null), GetTexture("whiteDonut_act3_green.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)37,
				(Ability)(int)ScrybeCompat.GetP03Ability("Magic Dust", (Ability)78)
			}));
			CardInfo val3 = CardHelpers.SetGlobalSpell(CardExtensions.AddAbilities(CardExtensions.SetEmissivePortrait(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_act3", "whiteDonut_blue", "Blue Noise", 0, 1, ""), (int?)2), (CardTemple)2), GetTexture("whiteDonut_act3.png"), (FilterMode?)null), GetTexture("whiteDonut_act3_blue.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)39,
				(Ability)(int)ScrybeCompat.GetP03Ability("Magic Dust", (Ability)78)
			}));
			CardHelpers.SetGlobalSpell(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_act3", "whiteDonut", "White Noise", 0, 1, ""), (int?)4), (CardTemple)2), GetTexture("whiteDonut_act3.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)44,
				(Ability)(int)ScrybeCompat.GetP03Ability("Magic Dust", (Ability)78)
			}));
			if (ScrybeCompat.P03Enabled)
			{
				ScrybeCompat.AddPart3Decal(val, CardExtensions.GetEmissivePortrait(val).texture);
				ScrybeCompat.AddPart3Decal(val2, CardExtensions.GetEmissivePortrait(val2).texture);
				ScrybeCompat.AddPart3Decal(val3, CardExtensions.GetEmissivePortrait(val3).texture);
			}
			CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_grimora", "whiteDonut", "White Bonut", 0, 1, ""), (int?)1), (CardTemple)1), GetTexture("whiteDonut_grimora.png"), GetTexture("whiteDonut_grimora_emission.png"), (FilterMode?)null), GetTexture("whiteDonut_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)12 });
			CardExtensions.SetTerrain(CardHelpers.SetTargetedSpellStats(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortrait(CardExtensions.SetBonesCost(CardManager.New("bbp_act1", "pastry", "Pastry", 0, 2, ""), (int?)2), GetTexture("pastry.png"), (FilterMode?)null), GetTexture("pastry_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)GiveStats.AbilityID })), false);
			CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_act3", "pastry", "PasteMe!", 0, 1, ""), (int?)3), (CardTemple)2), GetTexture("pastry_act3.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)(int)GiveStats.AbilityID,
				(Ability)(int)ScrybeCompat.GetP03Ability("Iterate", (Ability)9)
			});
			CardExtensions.AddTraits(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortrait(CardExtensions.SetBonesCost(CardManager.New("bbp_act1", "meetBun", "Meet Bun", 0, 1, ""), (int?)3), GetTexture("meetBun.png"), (FilterMode?)null), GetTexture("meetBun_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)22 }), (Trait[])(object)new Trait[1] { (Trait)20 });
			CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_act3", "meetBun", "M33T BUN", 0, 1, ""), (int?)3), (CardTemple)2), GetTexture("meetBun_act3.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)(int)ScrybeCompat.GetP03Ability("Fully Loaded", (Ability)83),
				(Ability)(int)ScrybeCompat.GetP03Ability("Full of Blood", (Ability)22)
			});
			CardExtensions.SetTerrain(CardHelpers.SetTargetedSpellStats(CardExtensions.SetPixelPortrait(CardExtensions.SetPortrait(CardExtensions.AddAbilities(CardExtensions.SetBonesCost(CardManager.New("bbp_act1", "scones", "Scones", 0, 1, ""), (int?)1), (Ability[])(object)new Ability[2]
			{
				(Ability)9,
				(Ability)(int)GiveStats.AbilityID
			}), GetTexture("scones.png"), (FilterMode?)null), GetTexture("scones_pixel.png"), (FilterMode?)null)), false);
			CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_act3", "scones", "Safety Cones", 0, 3, ""), (int?)3), (CardTemple)2), GetTexture("scones_act3.png"), (FilterMode?)null);
			CardExtensions.SetTerrain(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortrait(CardExtensions.SetBonesCost(CardManager.New("bbp_act1", "eggTart", "Egg Tart", 0, 2, ""), (int?)2), GetTexture("eggTart.png"), (FilterMode?)null), GetTexture("eggTart_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)51 }), false);
			CardHelpers.SetGlobalSpell(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_act3", "eggTart", "Egg.txt", 0, 0, ""), (int?)3), (CardTemple)2), GetTexture("eggTart_act3.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetP03Ability("Full of Guts", (Ability)51) }));
		}

		private void CreateLoudMice()
		{
			//IL_00dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e2: Expected I4, but got Unknown
			//IL_0140: Unknown result type (might be due to invalid IL or missing references)
			//IL_0146: Expected I4, but got Unknown
			//IL_0168: Unknown result type (might be due to invalid IL or missing references)
			//IL_016e: Expected I4, but got Unknown
			//IL_017d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0183: Expected I4, but got Unknown
			//IL_0192: Unknown result type (might be due to invalid IL or missing references)
			//IL_0198: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBonesCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "mouseLoud", "Loud Mouse", 2, 1, "Some people don't know when to shut up.")).AddAct1(), (int?)3), GetTexture("mouseLoud.png"), GetTexture("mouseLoud_emission.png"), (FilterMode?)null), GetTexture("mouseLoud_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)76 });
			CardInfo val2 = CardExtensions.AddAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "akaMouso", "Aka Mouso", 2, 2, "RED PAPER OR BLUE PAPER?")).AddGrimora(), (int?)5), GetTexture("akaMouso.png"), GetTexture("akaMouso_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetGrimoraAbility("Alternating Strike", (Ability)83) });
			CardInfo val3 = CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetRare(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "steambotWilly", "Steambot Willy", 3, 1, (string)null)).AddP03()), (int?)4), GetTexture("steambotWilly.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)(int)ScrybeCompat.GetP03Ability("Fuel Strike", (Ability)76),
				(Ability)13
			});
			ScrybeCompat.SetFuel(val3, 3);
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
			}
		}

		private void CreateMeanMice()
		{
			//IL_00f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f9: Expected I4, but got Unknown
			//IL_016a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0170: Expected I4, but got Unknown
			//IL_0186: Unknown result type (might be due to invalid IL or missing references)
			//IL_018c: Expected I4, but got Unknown
			//IL_019b: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a1: Expected I4, but got Unknown
			//IL_01b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b6: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "mouseMean", "Mean Mouse", 1, 1, "Don't get too close to this mouse and its pepper spray.")).AddAct1(), (int?)1), GetTexture("mouseMean.png"), GetTexture("mouseMean_emission.png"), (FilterMode?)null), GetTexture("mouseMean_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)62 });
			CardInfo val2 = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBonesCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "mousenapper", "Mousenapper", 1, 2, "DON'T GET TOO CLOSE TO THIS MOUSE.")).AddGrimora(), (int?)4), GetTexture("mousenapper.png"), GetTexture("mousenapper_emission.png"), (FilterMode?)null), GetTexture("mousenapper_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetGrimoraAbility("Hook Line And Sinker", (Ability)1) });
			CardInfo val3 = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "anonymouse", "Anonymouse", 1, 1, (string)null)).AddP03(), (int?)2), GetTexture("anonymouse.png"), (FilterMode?)null), GetTexture("anonymouse_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetP03Ability("Arsonist", (Ability)10) });
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NeutralRegion });
			}
		}

		private void CreateMoose()
		{
			//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f5: Expected I4, but got Unknown
			//IL_0153: Unknown result type (might be due to invalid IL or missing references)
			//IL_0159: Expected I4, but got Unknown
			//IL_016f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0175: Expected I4, but got Unknown
			//IL_0184: Unknown result type (might be due to invalid IL or missing references)
			//IL_018a: Expected I4, but got Unknown
			//IL_0199: Unknown result type (might be due to invalid IL or missing references)
			//IL_019f: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.AddTribes(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "moose", "Moose", 2, 8, "A mooseterious being with a knack for telling tales.")).AddAct1(), (int?)3), GetTexture("moose.png"), GetTexture("moose_emission.png"), (FilterMode?)null), GetTexture("moose_pixel.png"), (FilterMode?)null), (Tribe[])(object)new Tribe[1] { (Tribe)4 }), (Ability[])(object)new Ability[1] { (Ability)8 });
			CardInfo val2 = CardExtensions.AddAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetRare(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "moosetro", "Moosetro", 0, 1, "ALONGSIDE HIS SKELETAL ENTOURAGE, HE TRAVELS THE WORLD SPREADING BEAUTIFUL MOOSEIC.")).AddGrimora()), (int?)6), GetTexture("moosetro.png"), GetTexture("moosetro_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)(int)ScrybeCompat.GetGrimoraAbility("Sea Shanty", (Ability)34),
				(Ability)36
			});
			CardInfo val3 = CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "digitalMhoost", "Digital Mhoost", 1, 2, (string)null)).AddP03(), (int?)3), GetTexture("moosebot.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetP03Ability("Phase Through", (Ability)16) });
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
			}
		}

		private void CreateMice()
		{
			//IL_0123: Unknown result type (might be due to invalid IL or missing references)
			//IL_0129: Expected I4, but got Unknown
			//IL_0138: Unknown result type (might be due to invalid IL or missing references)
			//IL_013e: Expected I4, but got Unknown
			//IL_014d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0153: Expected I4, but got Unknown
			CardInfo val = CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "mouse", "Mouse", 2, 4, "Just a regular, law-abiding mouse.")).AddAct1(), (int?)2), GetTexture("mouse.png"), GetTexture("mouse_emission.png"), (FilterMode?)null), GetTexture("mouse_pixel.png"), (FilterMode?)null);
			CardInfo val2 = CardExtensions.AddAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBonesCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "skelemouse", "Skelemouse", 1, 1, "JUST A REGULAR SKELETON MOUSE.")).AddGrimora(), (int?)1), GetTexture("skelemouse.png"), GetTexture("skelemouse_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)35 });
			CardInfo val3 = CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "mousebot", "M0U53", 2, 4, (string)null)).AddP03(), (int?)6), GetTexture("mousebot.png"), (FilterMode?)null);
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
			}
			CreateShoolMice(val, val3);
		}

		private void CreatePandas()
		{
			//IL_00af: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b5: Expected I4, but got Unknown
			//IL_0154: Unknown result type (might be due to invalid IL or missing references)
			//IL_015a: Expected I4, but got Unknown
			//IL_016e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0174: Expected I4, but got Unknown
			//IL_01e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e9: Expected I4, but got Unknown
			//IL_0202: Unknown result type (might be due to invalid IL or missing references)
			//IL_0208: Expected I4, but got Unknown
			//IL_0217: Unknown result type (might be due to invalid IL or missing references)
			//IL_021d: Expected I4, but got Unknown
			//IL_0229: Unknown result type (might be due to invalid IL or missing references)
			//IL_022e: Unknown result type (might be due to invalid IL or missing references)
			//IL_023a: Unknown result type (might be due to invalid IL or missing references)
			//IL_023f: Unknown result type (might be due to invalid IL or missing references)
			//IL_024e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0251: Expected I4, but got Unknown
			//IL_025e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0264: Expected I4, but got Unknown
			//IL_0271: Unknown result type (might be due to invalid IL or missing references)
			//IL_0274: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.AddSpecialAbilities(CardExtensions.SetPixelAlternatePortrait(CardExtensions.SetPixelPortrait(CardExtensions.SetAltPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "panda", "Panda", 1, 2, "A detective on the hunt for a killer. Armed and dangerous.")).AddAct1(), (int?)1, (int?)3, (int?)0, (List<GemType>)null), GetTexture("panda.png"), GetTexture("panda_emission.png"), (FilterMode?)null), GetTexture("panda_alt.png"), (FilterMode?)null), GetTexture("panda_pixel.png"), (FilterMode?)null), GetTexture("panda_alt_pixel.png"), (FilterMode?)null), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)PandaAbility.SpecialAbility }), (Ability[])(object)new Ability[1] { (Ability)4 });
			CardInfo val2 = CardExtensions.AddAbilities(CardExtensions.AddSpecialAbilities(CardExtensions.SetEmissiveAltPortrait(CardExtensions.SetAltPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBonesCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "deadtective", "Deadtective", 1, 1, "A DETECTIVE THAT WAS HUNTED BY A KILLER. ARMLESS YET DANGEROUS.")).AddGrimora(), (int?)4), GetTexture("deadtective.png"), GetTexture("deadtective_emission.png"), (FilterMode?)null), GetTexture("deadtective_alt.png"), (FilterMode?)null), GetTexture("deadtective_alt_emission.png"), (FilterMode?)null), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)PandaAbility.SpecialAbility }), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetGrimoraAbility("Soul Shot", (Ability)74) });
			CardInfo val3 = CardExtensions.AddSpecialAbilities(CardExtensions.SetAltPortrait(CardExtensions.SetPortrait(CardExtensions.SetRare(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "pandat", "Pardan Panda", 2, 3, (string)null)).AddP03(), (int?)6)), GetTexture("pandat.png"), (FilterMode?)null), GetTexture("pandat_alt.png"), (FilterMode?)null), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)PandaAbility.SpecialAbility });
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				Ability p03Ability = ScrybeCompat.GetP03Ability("Nerf This!", (Ability)0);
				Appearance enumValue = GuidManager.GetEnumValue<Appearance>("zorro.inscryption.infiniscryption.p03kayceerun", "ForceRevolverAppearance");
				CardExtensions.AddAppearances(CardExtensions.AddMetaCategories(CardExtensions.AddAbilities(val3, (Ability[])(object)new Ability[2]
				{
					(Ability)4,
					(Ability)(int)p03Ability
				}), (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.TechRegion }), (Appearance[])(object)new Appearance[1] { (Appearance)(int)enumValue });
			}
			else
			{
				CardExtensions.AddAbilities(val3, (Ability[])(object)new Ability[2]
				{
					(Ability)53,
					(Ability)76
				});
			}
		}

		private void CreatePhoneMice()
		{
			//IL_0166: Unknown result type (might be due to invalid IL or missing references)
			//IL_016c: Expected I4, but got Unknown
			//IL_017f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0184: Unknown result type (might be due to invalid IL or missing references)
			//IL_018c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0191: Unknown result type (might be due to invalid IL or missing references)
			//IL_019c: Unknown result type (might be due to invalid IL or missing references)
			//IL_019f: Expected I4, but got Unknown
			//IL_01a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a4: Expected I4, but got Unknown
			//IL_01ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d4: Expected I4, but got Unknown
			//IL_01e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e9: Expected I4, but got Unknown
			//IL_01f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_01fe: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddTraits(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "mousePhone", "Phone Mouse", 0, 2, "A chatty little rodent. When it dies, backup follows swiftly.")).AddAct1(), (int?)3), GetTexture("mousePhone.png"), GetTexture("mousePhone_emission.png"), (FilterMode?)null), GetTexture("mousePhone_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)78 }), (Trait[])(object)new Trait[1] { (Trait)15 });
			CardInfo val2 = CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "killerMouse", "Killer Mouse", 1, 2, "DEATH FOLLOWS SWIFTLY WHEN THIS STABBY LITTLE MOUSE COMES A-CALLING.")).AddGrimora(), (int?)3), GetTexture("killerMouse.png"), GetTexture("killerMouse_emission.png"), (FilterMode?)null), GetTexture("killerMouse_pixel.png"), (FilterMode?)null);
			CardInfo val3 = CardExtensions.AddAbilities(CardHelpers.SetGlobalSpell(CardExtensions.SetPixelPortrait(CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "phoneMouse", "Mouse Phone", 0, 0, (string)null)).AddP03(), (int?)1), GetTexture("phoneMouse.png"), (FilterMode?)null), GetTexture("phoneMouse_pixel.png"), (FilterMode?)null)), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetP03Ability("Tinkerer", (Ability)78) });
			if (ScrybeCompat.GrimoraEnabled)
			{
				Ability grimoraAbility = ScrybeCompat.GetGrimoraAbility("Slasher", (Ability)0);
				Ability grimoraAbility2 = ScrybeCompat.GetGrimoraAbility("Haunting Call", (Ability)0);
				CardExtensions.AddAbilities(val2, (Ability[])(object)new Ability[2]
				{
					(Ability)(int)grimoraAbility,
					(Ability)(int)grimoraAbility2
				});
			}
			else
			{
				CardExtensions.AddAbilities(val2, (Ability[])(object)new Ability[1] { (Ability)100 });
			}
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NeutralRegion });
			}
		}

		private void CreatePirates()
		{
			//IL_0135: Unknown result type (might be due to invalid IL or missing references)
			//IL_013a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0145: Unknown result type (might be due to invalid IL or missing references)
			//IL_0148: Expected I4, but got Unknown
			//IL_015e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0164: Expected I4, but got Unknown
			//IL_0173: Unknown result type (might be due to invalid IL or missing references)
			//IL_0179: Expected I4, but got Unknown
			//IL_0188: Unknown result type (might be due to invalid IL or missing references)
			//IL_018e: Expected I4, but got Unknown
			//IL_019a: Unknown result type (might be due to invalid IL or missing references)
			//IL_019f: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ba: Expected I4, but got Unknown
			//IL_01bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bf: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "pirate", "Pirate", 0, 1, "A scallywag with a great treasure. He reminds me of a certain someone...")).AddAct1(), (int?)1), GetTexture("pirate.png"), GetTexture("pirate_emission.png"), (FilterMode?)null), GetTexture("pirate_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)13,
				(Ability)28
			});
			CardInfo val2 = CardExtensions.AddAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBonesCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "plunderer", "Jolly Roger", 2, 2, "THERE IS NO GREATER JOY THAN THE FULFILLMENT OF GREED.")).AddGrimora(), (int?)8), GetTexture("plunderer.png"), GetTexture("plunderer_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)79 });
			CardInfo val3 = CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "pirateTrojan", "Trojan", 0, 2, (string)null)).AddP03(), (int?)2), GetTexture("pirateTrojan.png"), (FilterMode?)null);
			if (ScrybeCompat.GrimoraEnabled)
			{
				Ability grimoraAbility = ScrybeCompat.GetGrimoraAbility("Anchored", (Ability)0);
				CardExtensions.AddAbilities(val2, (Ability[])(object)new Ability[1] { (Ability)(int)grimoraAbility });
			}
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NeutralRegion });
				Ability p03Ability = ScrybeCompat.GetP03Ability("Armor Giver", (Ability)0);
				Ability p03Ability2 = ScrybeCompat.GetP03Ability("Shield Absorption", (Ability)0);
				CardExtensions.AddAbilities(val3, (Ability[])(object)new Ability[2]
				{
					(Ability)(int)p03Ability,
					(Ability)(int)p03Ability2
				});
			}
			else
			{
				CardExtensions.AddAbilities(val3, (Ability[])(object)new Ability[1] { (Ability)57 });
			}
		}

		private void CreatePoliceWolves()
		{
			//IL_0166: Unknown result type (might be due to invalid IL or missing references)
			//IL_016c: Expected I4, but got Unknown
			//IL_0182: Unknown result type (might be due to invalid IL or missing references)
			//IL_0188: Expected I4, but got Unknown
			//IL_0197: Unknown result type (might be due to invalid IL or missing references)
			//IL_019d: Expected I4, but got Unknown
			//IL_01ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b2: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.AddTraits(CardExtensions.AddTribes(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "policeWolf", "Police Wolf", 2, 2, "An officer of the law, quick to respond to any trouble.")).AddAct1(), (int?)6), GetTexture("policeWolf.png"), GetTexture("policeWolf_emission.png"), (FilterMode?)null), GetTexture("policeWolf_pixel.png"), (FilterMode?)null), (Tribe[])(object)new Tribe[1] { (Tribe)3 }), (Trait[])(object)new Trait[1] { (Trait)4 }), (Ability[])(object)new Ability[1] { (Ability)11 });
			CardInfo val2 = CardExtensions.AddTraits(CardExtensions.SetPortraitAndEmission(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_grimora", "spiritWolf", "Spirit Wolf", 2, 1, "THE DEGENERATED SPIRIT OF A ONCE-FEARSOME PREDATOR OF THE FOREST.")).AddGrimora(), (int?)4), GetTexture("spiritWolf.png"), GetTexture("spiritWolf_emission.png"), (FilterMode?)null), (Trait[])(object)new Trait[1] { (Trait)4 });
			CardInfo val3 = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortrait(CardExtensions.SetEnergyCost(CardExtensions.SetDefaultPart3Card(CardManager.New("bbp_act3", "copstable", "Cop.stable", 1, 1, (string)null)).AddP03(), (int?)3), GetTexture("firewolf.png"), (FilterMode?)null), GetTexture("firewolf_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetP03Ability("Electric", (Ability)100) });
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.NatureRegion });
				CardExtensions.AddMetaCategories(val2, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
				CardExtensions.AddMetaCategories(val3, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.TechRegion });
			}
		}

		private void CreateProtagonists()
		{
			//IL_0150: Unknown result type (might be due to invalid IL or missing references)
			//IL_0156: Expected I4, but got Unknown
			//IL_0169: Unknown result type (might be due to invalid IL or missing references)
			//IL_016e: Unknown result type (might be due to invalid IL or missing references)
			//IL_017e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0181: Expected I4, but got Unknown
			//IL_01ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b1: Expected I4, but got Unknown
			//IL_01c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c6: Expected I4, but got Unknown
			//IL_01d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01db: Expected I4, but got Unknown
			CardInfo val = CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetEmissiveAltPortrait(CardExtensions.SetAltPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_act1", "protagonist", "???", 1, 2, "A mysterious person with a bad habit of sticking t