Decompiled source of Bonnies Baking Pack v1.1.1

BonniesBakingPack.dll

Decompiled a day 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.Saves;
using InscryptionAPI.TalkingCards;
using InscryptionAPI.TalkingCards.Animation;
using InscryptionAPI.TalkingCards.Create;
using InscryptionAPI.Triggers;
using MagnificusMod;
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.1.1.0")]
[assembly: AssemblyInformationalVersion("1.1.1+e6205334720ed0b952c310a0581a3b16eb0068c9")]
[assembly: AssemblyProduct("BonniesBakingPack")]
[assembly: AssemblyTitle("BonniesBakingPack")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.1.1.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.1.1")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class 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 const string MagnificusGuid = "silenceman.inscryption.magnificusmod";

			internal static CardMetaCategory GrimoraChoice = GuidManager.GetEnumValue<CardMetaCategory>("arackulele.inscryption.grimoramod", "GrimoraModChoiceNode");

			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");

			private static Assembly _magnificusAsm = null;

			internal static bool MagnificusEnabled => Chainloader.PluginInfos.ContainsKey("silenceman.inscryption.magnificusmod");

			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 Assembly MagnificusAsm
			{
				get
				{
					if (_magnificusAsm == null)
					{
						_magnificusAsm = Assembly.GetAssembly(typeof(MoxCycling));
					}
					return _magnificusAsm;
				}
			}

			internal static Ability GetGrimoraAbility(string rulebookName, Ability fallback)
			{
				//IL_0006: Unknown result type (might be due to invalid IL or missing references)
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Unknown result type (might be due to invalid IL or missing references)
				//IL_001b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0019: Unknown result type (might be due to invalid IL or missing references)
				Ability enumValue = GuidManager.GetEnumValue<Ability>("arackulele.inscryption.grimoramod", rulebookName);
				if (AbilityExtensions.AbilityByID((IEnumerable<FullAbility>)AbilityManager.AllAbilities, enumValue) != null)
				{
					return enumValue;
				}
				return fallback;
			}

			internal static Ability GetP03Ability(string rulebookName, Ability fallback)
			{
				//IL_0006: Unknown result type (might be due to invalid IL or missing references)
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Unknown result type (might be due to invalid IL or missing references)
				//IL_001b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0019: Unknown result type (might be due to invalid IL or missing references)
				Ability enumValue = GuidManager.GetEnumValue<Ability>("zorro.inscryption.infiniscryption.p03sigillibrary", rulebookName);
				if (AbilityExtensions.AbilityByID((IEnumerable<FullAbility>)AbilityManager.AllAbilities, enumValue) != null)
				{
					return enumValue;
				}
				return fallback;
			}

			internal static Ability GetP03RunAbility(string rulebookName, Ability fallback)
			{
				//IL_0006: Unknown result type (might be due to invalid IL or missing references)
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Unknown result type (might be due to invalid IL or missing references)
				//IL_001b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0019: Unknown result type (might be due to invalid IL or missing references)
				Ability enumValue = GuidManager.GetEnumValue<Ability>("zorro.inscryption.infiniscryption.p03kayceerun", rulebookName);
				if (AbilityExtensions.AbilityByID((IEnumerable<FullAbility>)AbilityManager.AllAbilities, enumValue) != null)
				{
					return enumValue;
				}
				return fallback;
			}

			internal static Ability GetMagnificusAbility(string rulebookName, Ability fallback)
			{
				//IL_0006: Unknown result type (might be due to invalid IL or missing references)
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Unknown result type (might be due to invalid IL or missing references)
				//IL_001b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0019: Unknown result type (might be due to invalid IL or missing references)
				Ability enumValue = GuidManager.GetEnumValue<Ability>("silenceman.inscryption.magnificusmod", rulebookName);
				if (AbilityExtensions.AbilityByID((IEnumerable<FullAbility>)AbilityManager.AllAbilities, enumValue) != null)
				{
					return enumValue;
				}
				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);
			}

			internal static void SetManaCost(CardInfo card, int manaCost)
			{
				CardExtensions.SetBloodCost(card, (int?)manaCost);
				CardExtensions.SetExtendedProperty(card, "ManaCost", (object)true);
			}

			internal static bool HasManaCost(CardInfo card)
			{
				return CardExtensions.GetExtendedPropertyAsBool(card, "ManaCost").GetValueOrDefault();
			}
		}

		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>();

		public static readonly List<CardInfo> MagnificusCards = 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.1.1";

		private void AddAbilities()
		{
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_006b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_008e: 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_00b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cf: 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_00f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0115: Unknown result type (might be due to invalid IL or missing references)
			//IL_011a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0138: Unknown result type (might be due to invalid IL or missing references)
			//IL_013d: Unknown result type (might be due to invalid IL or missing references)
			//IL_015b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0160: 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_0183: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c9: Unknown result type (might be due to invalid IL or missing references)
			AddFreshFood();
			AddFreshFoodMagnificus();
			AddFreshIngredients();
			AddFreshIngredientsMagnificus();
			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;
			LoolooAbility.SpecialAbility2 = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "LoolooAbility", typeof(LoolooAbility)).Id;
			TalkingBonnieAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BonnieAbility", typeof(TalkingBonnieAbility)).Id;
			TalkingBunnieAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BunnieAbility", typeof(TalkingBunnieAbility)).Id;
			TalkingBonnieDiskAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BonnieDiskAbility", typeof(TalkingBonnieDiskAbility)).Id;
			TalkingBunnieDiskAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BunnieDiskAbility", typeof(TalkingBunnieDiskAbility)).Id;
			BunnieAttackAbility.SpecialAbility = SpecialTriggeredAbilityManager.Add("whistlewind.inscryption.bonniesbakingpack", "BunnieAttackAbility", typeof(BunnieAttackAbility)).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_007c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: 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 and draw Bunnie into your hand next turn.\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[3]
			{
				default(AbilityMetaCategory),
				(AbilityMetaCategory)2,
				(AbilityMetaCategory)5
			}).ability;
		}

		private void AddFreshFoodMagnificus()
		{
			//IL_007c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			FreshFoodMagnificus.ability = AbilityExtensions.AddMetaCategories(AbilityExtensions.SetPixelAbilityIcon(AbilityExtensions.SetRulebookName(AbilityExtensions.SetPowerlevel(AbilityExtensions.SetGBCTriggerText(AbilityExtensions.SetAbilityLearnedDialogue(AbilityManager.New("whistlewind.inscryption.bonniesbakingpack", "Fresh Food Magnificus", "When this card is drawn, create a random Food in your hand. If the opponent owns gems, remove this card from the board and draw a Rabbid Rabbit next turn.", typeof(FreshFoodMagnificus), (Texture)(object)GetTexture("sigilFreshFood_m.png")), new string[1] { "A freshly baked confectionary, made with love and care." }), "[creature] books it!"), 3), "Fresh Food"), GetTexture("sigilFreshFood_m_pixel.png"), (FilterMode?)null), (AbilityMetaCategory[])(object)new AbilityMetaCategory[1] { (AbilityMetaCategory)6 }).ability;
		}

		private void AddFreshIngredients()
		{
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0071: 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] strikes 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[3]
			{
				default(AbilityMetaCategory),
				(AbilityMetaCategory)2,
				(AbilityMetaCategory)5
			}).ability;
		}

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

		private void AddCards()
		{
			//IL_007f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			//IL_009d: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a2: 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_00b2: 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_00d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e0: 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_011a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0152: Unknown result type (might be due to invalid IL or missing references)
			CreateFood();
			CreateBonnie();
			CreateBunnie();
			CreateBonnieGrimora();
			CreateBonnieMagnificus();
			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)
			{
				BonnieAct3.Register();
				HarmonyInstance.PatchAll(typeof(P03Patches));
				HarmonyInstance.PatchAll(typeof(BonnieAct3));
			}
			if (ScrybeCompat.MagnificusEnabled)
			{
				HarmonyInstance.PatchAll(typeof(MagnificusPatches));
			}
			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);
					}
				}
				if (ScrybeCompat.MagnificusEnabled)
				{
					FullAbility? obj8 = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetMagnificusAbility("Bone Marrow", (Ability)0));
					if (obj8 != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj8.Info, GetTexture("boneMarrow_pixel.png"), (FilterMode?)null);
					}
					FullAbility? obj9 = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetMagnificusAbility("Dead Draw", (Ability)0));
					if (obj9 != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj9.Info, GetTexture("deadDraw_pixel.png"), (FilterMode?)null);
					}
					FullAbility? obj10 = abilities.Find((FullAbility x) => x.Id == ScrybeCompat.GetMagnificusAbility("Resurrection", (Ability)0));
					if (obj10 != null)
					{
						AbilityExtensions.SetPixelAbilityIcon(obj10.Info, GetTexture("resurrection_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.New("whistlewind.inscryption.bonniesbakingpack", "Bauble Baking Pack;1", GetTexture("starterDeck4.png"), new string[4] { "bbp_magnificus_witness", "bbp_magnificus_occultist", "bbp_magnificus_occultist", "bbp_magnificus_lich" }, 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");
				}
				if (!ScrybeCompat.MagnificusEnabled)
				{
					decks.RemoveAll((FullStarterDeck x) => x.Info.title == "Bauble Baking Pack;1");
				}
				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);
			PackInfo packInfo4 = PackManager.GetPackInfo<PackInfo>("bbp_magnificus");
			((PackInfoBase)packInfo4).Title = "Bonnie's Bauble Pack";
			((PackInfoBase)packInfo4).SetTexture(TextureHelper.GetImageAsTexture("bbp_pack_magnificus.png", Assembly, (FilterMode)0));
			((PackInfoBase)packInfo4).Description = "14 dazzling ingredients for all your thaumoturgical needs!";
			((PackInfoBase)packInfo4).ValidFor.Clear();
			((PackInfoBase)packInfo4).ValidFor.Add((PackMetacategory)3);
			if (SplitByAct.Value)
			{
				((PackInfoBase)packInfo).ValidFor.Add((PackMetacategory)2);
				((PackInfoBase)packInfo).ValidFor.Add((PackMetacategory)1);
				((PackInfoBase)packInfo).ValidFor.Add((PackMetacategory)3);
				((PackInfoBase)packInfo2).ValidFor.Add((PackMetacategory)0);
				((PackInfoBase)packInfo2).ValidFor.Add((PackMetacategory)1);
				((PackInfoBase)packInfo2).ValidFor.Add((PackMetacategory)3);
				((PackInfoBase)packInfo3).ValidFor.Add((PackMetacategory)0);
				((PackInfoBase)packInfo3).ValidFor.Add((PackMetacategory)2);
				((PackInfoBase)packInfo3).ValidFor.Add((PackMetacategory)3);
				((PackInfoBase)packInfo4).ValidFor.Add((PackMetacategory)0);
				((PackInfoBase)packInfo4).ValidFor.Add((PackMetacategory)2);
				((PackInfoBase)packInfo4).ValidFor.Add((PackMetacategory)1);
			}
		}

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

		internal static Texture2D GetTexture(string fileName, Assembly asm)
		{
			return TextureHelper.GetImageAsTexture(fileName, asm, (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_00d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0121: Unknown result type (might be due to invalid IL or missing references)
			//IL_0159: Unknown result type (might be due to invalid IL or missing references)
			//IL_0163: Expected O, but got Unknown
			//IL_017f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0186: Expected O, but got Unknown
			//IL_018f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0196: Expected O, but got Unknown
			//IL_01ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f3: 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_027d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0283: Expected I4, but got Unknown
			//IL_02dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0305: Unknown result type (might be due to invalid IL or missing references)
			//IL_030b: Expected I4, but got Unknown
			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 }).AddAct1(), 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);
			Sprite val4 = TextureHelper.ConvertTexture(TextureHelper.GetImageAsTexture("bingus_part3.png", Assembly, (FilterMode)0), (Vector2?)new Vector2(0.5f, 0f));
			List<EmotionData> list2 = new List<EmotionData>
			{
				new EmotionData((Emotion)0, val4, FaceAnim.op_Implicit(GeneratePortrait.EmptyPortraitTuple), FaceAnim.op_Implicit(GeneratePortrait.EmptyPortraitTuple), FaceAnim.op_Implicit(GeneratePortrait.EmptyPortraitTuple))
			};
			FaceInfo val5 = new FaceInfo((float?)null, "female1_voice", (float?)null, (string)null);
			FaceData val6 = new FaceData("bbp_act3_bingus", list2, val5);
			CardInfo obj2 = CardExtensions.SetStatIcon(CardExtensions.RemoveAppearances(CardExtensions.SetRare(CardManager.New("bbp_act3", "bingus", "Bingus", 0, 0, "Seriously? What kind of mods did you install?")), (Appearance[])(object)new Appearance[1] { (Appearance)7 }).AddAct1(), BingusStatIcon.Icon);
			Trait[] array2 = new Trait[5];
			RuntimeHelpers.InitializeArray(array2, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/);
			CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(obj2, (Trait[])(object)array2), true);
			TalkingCardManager.Create(val6, BingusAbility.SpecialAbility);
			CardInfo obj3 = CardExtensions.SetStatIcon(CardExtensions.SetPortraitAndEmission(CardExtensions.RemoveAppearances(CardExtensions.SetRare(CardManager.New("bbp_grimora", "bingus", "Looloo", 0, 0, "OH GOODNESS. I-I DO NOT KNOW WHAT TO SAY.")), (Appearance[])(object)new Appearance[1] { (Appearance)7 }).AddGrimora(), GetTexture("looloo.png"), GetTexture("looloo_emission.png"), (FilterMode?)null), BingusStatIcon.Icon);
			Trait[] array3 = new Trait[4];
			RuntimeHelpers.InitializeArray(array3, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/);
			CardExtensions.SetOnePerDeck(CardExtensions.AddSpecialAbilities(CardExtensions.AddTraits(obj3, (Trait[])(object)array3), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)LoolooAbility.SpecialAbility2 }), true);
			CardInfo obj4 = CardExtensions.SetStatIcon(CardExtensions.SetPortrait(CardExtensions.RemoveAppearances(CardExtensions.SetRare(CardManager.New("bbp_magnificus", "bingus", "Bingus (Wizard)", 0, 0, "What is this childish card doing in my tower?")), (Appearance[])(object)new Appearance[1] { (Appearance)7 }).AddMagnificus(), GetTexture("bingus_wizard.png"), (FilterMode?)null), BingusStatIcon.Icon);
			Trait[] array4 = new Trait[4];
			RuntimeHelpers.InitializeArray(array4, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/);
			CardExtensions.SetOnePerDeck(CardExtensions.AddSpecialAbilities(CardExtensions.AddTraits(obj4, (Trait[])(object)array4), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)LoolooAbility.SpecialAbility2 }), true);
		}

		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_008f: 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_00bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0121: Unknown result type (might be due to invalid IL or missing references)
			//IL_013d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0159: Unknown result type (might be due to invalid IL or missing references)
			//IL_0175: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01be: Unknown result type (might be due to invalid IL or missing references)
			//IL_01da: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0223: 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_026c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0288: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_02dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_0309: Unknown result type (might be due to invalid IL or missing references)
			//IL_0325: Unknown result type (might be due to invalid IL or missing references)
			//IL_0336: Unknown result type (might be due to invalid IL or missing references)
			//IL_0352: Unknown result type (might be due to invalid IL or missing references)
			//IL_036e: Unknown result type (might be due to invalid IL or missing references)
			//IL_038a: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_03e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0400: Unknown result type (might be due to invalid IL or missing references)
			//IL_041c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0449: Unknown result type (might be due to invalid IL or missing references)
			//IL_0465: Unknown result type (might be due to invalid IL or missing references)
			//IL_0476: Unknown result type (might be due to invalid IL or missing references)
			//IL_0492: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_04ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_04f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0508: Unknown result type (might be due to invalid IL or missing references)
			//IL_0524: Unknown result type (might be due to invalid IL or missing references)
			//IL_0535: Unknown result type (might be due to invalid IL or missing references)
			//IL_0551: Unknown result type (might be due to invalid IL or missing references)
			//IL_056d: Unknown result type (might be due to invalid IL or missing references)
			//IL_059a: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_05c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_05e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_062c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0648: Unknown result type (might be due to invalid IL or missing references)
			//IL_0664: Unknown result type (might be due to invalid IL or missing references)
			//IL_0680: Unknown result type (might be due to invalid IL or missing references)
			//IL_06ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_06c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_06e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_06f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_0712: Unknown result type (might be due to invalid IL or missing references)
			CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(CardExtensions.SetExtendedProperty(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 }), "IsBonnie", (object)true), (Trait[])(object)new Trait[1] { (Trait)19 }), true);
			TalkingCardManager.New<TalkingBonnieAbility>();
			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_004d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0053: Expected I4, but got Unknown
			//IL_009a: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ff: 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_0148: Unknown result type (might be due to invalid IL or missing references)
			//IL_0164: Unknown result type (might be due to invalid IL or missing references)
			//IL_0180: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0201: 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_024a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0266: Unknown result type (might be due to invalid IL or missing references)
			//IL_0282: Unknown result type (might be due to invalid IL or missing references)
			//IL_02af: Unknown result type (might be due to invalid IL or missing references)
			//IL_02cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0303: Unknown result type (might be due to invalid IL or missing references)
			//IL_0330: Unknown result type (might be due to invalid IL or missing references)
			//IL_034c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0368: Unknown result type (might be due to invalid IL or missing references)
			//IL_0384: Unknown result type (might be due to invalid IL or missing references)
			CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(CardExtensions.SetExtendedProperty(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 }), "IsBonnie", (object)true), (Trait[])(object)new Trait[1] { (Trait)19 }), true);
			TalkingCardManager.NewDisk<TalkingBonnieDiskAbility>();
			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 CreateBonnieGrimora()
		{
			//IL_0073: Unknown result type (might be due to invalid IL or missing references)
			//IL_0079: Expected I4, but got Unknown
			//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f6: Expected I4, but got Unknown
			//IL_0103: Unknown result type (might be due to invalid IL or missing references)
			//IL_0109: Expected I4, but got Unknown
			//IL_0125: Unknown result type (might be due to invalid IL or missing references)
			//IL_012b: Expected I4, but got Unknown
			CardInfo val = CardExtensions.SetOnePerDeck(CardExtensions.SetExtendedProperty(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetRare(CardManager.New("bbp_grimora", "bonnie", "Leela", 1, 1, "AMIDST ALL THESE MONSTERS AND GHOULS, THIS HUMAN FITS RIGHT IN.")).AddGrimora(), (int?)1), GetTexture("bonnie_grimora.png"), GetTexture("bonnie_grimora_emission.png"), (FilterMode?)null), GetTexture("bonnie_grimora_pixel.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)FreshFood.ability }), "IsBonnie", (object)true), true);
			CardExtensions.SetOnePerDeck(CardExtensions.AddSpecialAbilities(CardExtensions.AddAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetRare(CardManager.New("bbp_grimora", "bunnie", "Leppy", 2, 2, "A WICKED HEAT BURNS IN ME. MY FINGERS DIG INTO YOUR NECK, YOUR SKIN BETWEEN MY NAILS, AS GLORIOUS LIFE FORMS A HALO BENEATH YOU. MY MUSCLES TENSE AND SHUDDER ATOP YOU AS YOU WHIMPER BENEATH ME. SO FRAIL AND HELPLESS, LIKE A LITTLE BUNNY. THE HEAT GROWS UNBEARABLE AND I BITE DOWN INTO YOU. HARDER, HARDER, HARDER. THE TASTE OF YOU PAINTS MY MOUTH AS THE GOODNESS WITHIN YOU SPILLS INSIDE ME. YOUR LIMP PAWS BEAT AGAINST ME, DRUMMING IN TUNE WITH MY RACING HEART. I PRESS MYSELF AGAINST YOU, FLESH GRINDING AGAINST SQUIRMING FLESH. THE HEAT BUILDS, HIGHER AND HIGHER UNTIL IT SNAPS WITHIN ME. YOUR LIFE MIXES WITH MY PLEASURE, TRACING RIVERS DOWN MY SHIVERING THIGHS. YOUR TASTE LINGERS IN MY MOUTH, TUFTS OF BLOODIED FUR BETWEEN MY TEETH, YOUR DULL EYES DROWNING IN SALT WATER. THE HEAT HAS LEFT. BUT NEVER FOR LONG.")).AddGrimora(cardChoice: false), (int?)1), GetTexture("bunnie_grimora.png"), GetTexture("bunnie_grimora_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)FreshIngredients.ability }), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)BunnieAttackAbility.SpecialAbility }), true);
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.UndeadRegion });
			}
		}

		private void CreateBonnieMagnificus()
		{
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Expected I4, but got Unknown
			//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00af: Expected I4, but got Unknown
			//IL_00bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c2: Expected I4, but got Unknown
			//IL_00de: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e4: Expected I4, but got Unknown
			CardInfo val = CardExtensions.SetOnePerDeck(CardExtensions.SetExtendedProperty(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_magnificus", "bonnie", "Cake Witch", 1, 1, "A young witch that conjures bejeweled confections.")).AddMagnificus(), GetTexture("bonnie_magnificus.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)FreshFoodMagnificus.ability }), "IsBonnie", (object)true), true);
			CardInfo card = CardExtensions.SetOnePerDeck(CardExtensions.AddSpecialAbilities(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardManager.New("bbp_magnificus", "bunnie", "Rabid Rabbit", 2, 2, "Magick flows through the veins of all things living. To wield this purest of living arcana is to become a beast.").AddMagnificus(), GetTexture("bunnie_magnificus.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)FreshIngredientsMagnificus.Id }), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)BunnieAttackAbility.SpecialAbility }), true);
			if (ScrybeCompat.P03Enabled)
			{
				CardExtensions.AddMetaCategories(val, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.WizardRegion });
			}
			ScrybeCompat.SetManaCost(val, 1);
			ScrybeCompat.SetManaCost(card, 1);
		}

		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_0051: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Expected I4, but got Unknown
			//IL_007e: 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_00ff: 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_0180: 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_02e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0303: Unknown result type (might be due to invalid IL or missing references)
			//IL_0330: Unknown result type (might be due to invalid IL or missing references)
			//IL_034c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0368: Unknown result type (might be due to invalid IL or missing references)
			//IL_0384: Unknown result type (might be due to invalid IL or missing references)
			//IL_0395: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_03de: Unknown result type (might be due to invalid IL or missing references)
			//IL_03fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_040b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0427: Unknown result type (might be due to invalid IL or missing references)
			CardExtensions.SetOnePerDeck(CardExtensions.AddSpecialAbilities(CardExtensions.AddTraits(CardExtensions.AddAbilities(CardExtensions.SetBloodCost(CardManager.New("bbp_act1", "bunnie", "Bunnie", 2, 2, "The hunt begins."), (int?)1), (Ability[])(object)new Ability[1] { (Ability)(int)FreshIngredients.ability }), (Trait[])(object)new Trait[1] { (Trait)19 }), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)BunnieAttackAbility.SpecialAbility }), true);
			TalkingCardManager.New<TalkingBunnieAbility>();
			DialogueManager.GenerateEvent("whistlewind.inscryption.bonniesbakingpack", "BunnieDrawn", new List<CustomLine> { NewLine("Hello ag- for the first 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_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_003f: Expected I4, but got Unknown
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0062: Expected I4, but got Unknown
			//IL_0098: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00dd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0126: Unknown result type (might be due to invalid IL or missing references)
			//IL_0142: Unknown result type (might be due to invalid IL or missing references)
			//IL_015e: Unknown result type (might be due to invalid IL or missing references)
			//IL_018b: 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_01c3: 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_020c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0228: Unknown result type (might be due to invalid IL or missing references)
			//IL_0244: 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_028d: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c5: Unknown result type (might be due to invalid IL or missing references)
			CardExtensions.RemoveCardMetaCategories(CardExtensions.SetOnePerDeck(CardExtensions.AddSpecialAbilities(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 }), (SpecialTriggeredAbility[])(object)new SpecialTriggeredAbility[1] { (SpecialTriggeredAbility)(int)BunnieAttackAbility.SpecialAbility }), true), (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)3 });
			TalkingCardManager.NewDisk<TalkingBunnieDiskAbility>();
			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_00e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ea: Expected I4, but got Unknown
			//IL_00fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_0104: 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_016d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0173: Expected I4, but got Unknown
			//IL_01f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_01fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0200: Unknown result type (might be due to invalid IL or missing references)
			//IL_0210: Expected O, but got Unknown
			//IL_0225: Unknown result type (might be due to invalid IL or missing references)
			//IL_022b: Expected I4, but got Unknown
			//IL_023a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0240: Expected I4, but got Unknown
			//IL_024f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0255: Expected I4, but got Unknown
			//IL_0264: Unknown result type (might be due to invalid IL or missing references)
			//IL_026a: 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)
			});
			CardInfo val4 = CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetHideStats(CardExtensions.AddAppearances(CardExtensions.SetTraits(CardManager.New("bbp_magnificus", "magicHat", "Magician's Hat", 0, 1, "Appearances are deceiving with this little parlour trick.").AddMagnificus(), (Trait[])(object)new Trait[1] { (Trait)1 }), (Appearance[])(object)new Appearance[1] { (Appearance)9 }), true), GetTexture("magicHat.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)1 });
			val4.Mods = new List<CardModificationInfo>
			{
				new CardModificationInfo(ScrybeCompat.GetMagnificusAbility("Rerolls", (Ability)18))
				{
					singletonId = "MagicHatSpecialMod"
				}
			};
			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 });
				CardExtensions.AddMetaCategories(val4, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.WizardRegion });
			}
		}

		private void CreateCats()
		{
			//IL_00e9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ef: Expected I4, but got Unknown
			//IL_014f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0155: Expected I4, but got Unknown
			//IL_01bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c3: Expected I4, but got Unknown
			//IL_01d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01df: Expected I4, but got Unknown
			//IL_01ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f4: Expected I4, but got Unknown
			//IL_0203: Unknown result type (might be due to invalid IL or missing references)
			//IL_0209: Expected I4, but got Unknown
			//IL_0218: Unknown result type (might be due to invalid IL or missing references)
			//IL_021e: 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(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)
			});
			CardInfo val4 = CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetGemsCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_magnificus", "witchCat", "Witch's Familiar", 0, 3, "An ordinary housecat gifted arcane power by its owner.")).AddMagnificus(), (GemType[])(object)new GemType[1] { (GemType)2 }), GetTexture("witchCat.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)34,
				(Ability)(int)ScrybeCompat.GetMagnificusAbility("Familiar", (Ability)43)
			});
			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 });
				CardExtensions.AddMetaCategories(val4, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.WizardRegion });
			}
		}

		private void CreateDogs()
		{
			//IL_0150: Unknown result type (might be due to invalid IL or missing references)
			//IL_0156: Expected I4, but got Unknown
			//IL_015f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0165: Expected I4, but got Unknown
			//IL_01c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ce: Expected I4, but got Unknown
			//IL_01e9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ef: Expected I4, but got Unknown
			//IL_01fe: Unknown result type (might be due to invalid IL or missing references)
			//IL_0204: Expected I4, but got Unknown
			//IL_0213: Unknown result type (might be due to invalid IL or missing references)
			//IL_0219: Expected I4, but got Unknown
			//IL_0228: Unknown result type (might be due to invalid IL or missing references)
			//IL_022e: 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)
			});
			CardInfo val4 = CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetGemsCost(CardExtensions.SetDefaultPart1Card(CardManager.New("bbp_magnificus", "dogWizard", "Faithful Companion", 0, 2, "A gem construct eternally bound to protect its master.")).AddMagnificus(), (GemType[])(object)new GemType[1] { (GemType)1 }), GetTexture("dogWizard.png"), (FilterMode?)null), (Ability[])(object)new Ability[2]
			{
				(Ability)(int)ScrybeCompat.GetMagnificusAbility("Sapphire Heart", (Ability)41),
				(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 });
				CardExtensions.AddMetaCategories(val4, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.WizardRegion });
			}
		}

		private void CreateEtherealLadies()
		{
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_008f: Expected I4, but got Unknown
			//IL_0123: Unknown result type (might be due to invalid IL or missing references)
			//IL_0129: Expected I4, but got Unknown
			//IL_018d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0193: Expected I4, but got Unknown
			//IL_01b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bd: Expected I4, but got Unknown
			//IL_01c6: Unknown result type (might be due to invalid IL or missing references)
			//IL_01cc: Expected I4, but got Unknown
			//IL_0239: Unknown result type (might be due to invalid IL or missing references)
			//IL_023f: Expected I4, but got Unknown
			//IL_0248: Unknown result type (might be due to invalid IL or missing references)
			//IL_024e: Expected I4, but got Unknown
			//IL_0257: Unknown result type (might be due to invalid IL or missing references)
			//IL_025d: Expected I4, but got Unknown
			//IL_02a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a7: Expected I4, but got Unknown
			//IL_02b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_02bc: Expected I4, but got Unknown
			//IL_02cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d1: Expected I4, but got Unknown
			//IL_02e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_02e6: Expected I4, but got Unknown
			CardInfo val = CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(CardExtensions.AddAppearances(CardExtensions.AddAbilities(CardExtensions.SetPixelPortrait(CardExtensions.SetPortraitAndEmission(CardExtensions.SetBloodCost(CardExtensions.SetRare(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.SetRare(CardManager.New("bbp_grimora", "eternalLady", "Our Eternal Lady", 1, 1, "UNDER HER CARE THERE WILL BE NO SUFFERING OR DEATH.")).AddGrimora(), (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(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);
			CardInfo val4 = CardExtensions.SetOnePerDeck(CardExtensions.AddTraits(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetGemsCost(CardExtensions.SetRare(CardManager.New("bbp_magnificus", "completeLady", "The Lady Complete", 2, 4, "A portrait of perfection; none will ever compare to such beauty.")).AddMagnificus(), (GemType[])(object)new GemType[3]
			{
				default(GemType),
				(GemType)1,
				(GemType)2
			}), GetTexture("completeLady.png"), (FilterMode?)null), (Ability[])(object)new Ability[3]
			{
				(Ability)(int)ScrybeCompat.GetMagnificusAbility("Stimulation", (Ability)104),
				(Ability)(int)ScrybeCompat.GetMagnificusAbility("Stimulation (Health)", (Ability)54),
				(Ability)(int)ScrybeCompat.GetMagnificusAbility("Purist", (Ability)83)
			}), (Trait[])(object)new Trait[1] { (Trait)21 }), true);
			ScrybeCompat.SetManaCost(val4, 1);
			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 });
				CardExtensions.AddMetaCategories(val4, (CardMetaCategory[])(object)new CardMetaCategory[1] { (CardMetaCategory)(int)ScrybeCompat.WizardRegion });
			}
		}

		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_012f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0135: Expected I4, but got Unknown
			//IL_028c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0292: Expected I4, but got Unknown
			//IL_030d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0313: Expected I4, but got Unknown
			//IL_038e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0394: Expected I4, but got Unknown
			//IL_03f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_03fd: Expected I4, but got Unknown
			//IL_0586: Unknown result type (might be due to invalid IL or missing references)
			//IL_058c: Expected I4, but got Unknown
			//IL_05e9: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ef: Expected I4, but got Unknown
			//IL_05f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_05fe: Expected I4, but got Unknown
			//IL_065a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0660: Expected I4, but got Unknown
			//IL_06b9: Unknown result type (might be due to invalid IL or missing references)
			//IL_06bf: Expected I4, but got Unknown
			//IL_0794: Unknown result type (might be due to invalid IL or missing references)
			//IL_079a: Expected I4, but got Unknown
			//IL_07a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_07a9: Expected I4, but got Unknown
			//IL_080c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0812: Expected I4, but got Unknown
			//IL_086b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0871: Expected I4, but got Unknown
			//IL_08af: Unknown result type (might be due to invalid IL or missing references)
			//IL_08b5: Expected I4, but got Unknown
			//IL_09e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_09ee: Expected I4, but got Unknown
			//IL_0ab9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0abf: 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(CardHelpers.SetTargetedSpellStats(CardExtensions.AddAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_grimora", "redVelvet", "Dread Velvet", 1, 0, ""), (int?)3), (CardTemple)1), GetTexture("redVelvet_grimora.png"), GetTexture("redVelvet_grimora_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)GiveStats.AbilityID })), false);
			CardExtensions.SetTraits(CardExtensions.AddAppearances(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardManager.New("bbp_magnificus", "redVelvet", "Ruby Velvet", 0, 1, ""), (CardTemple)3), GetTexture("redVelvet_magnificus.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)38 }), (Appearance[])(object)new Appearance[1] { (Appearance)2 }), (Trait[])(object)new Trait[1] { (Trait)17 });
			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.SetTerrain(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 }), true);
			CardExtensions.AddTraits(CardExtensions.AddAppearances(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardManager.New("bbp_magnificus", "whiteDonut", "Sapphire Donut", 0, 1, ""), (CardTemple)3), GetTexture("whiteDonut_magnificus.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)39 }), (Appearance[])(object)new Appearance[1] { (Appearance)2 }), (Trait[])(object)new Trait[1] { (Trait)17 });
			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.SetTerrain(CardHelpers.SetTargetedSpellStats(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_grimora", "pastry", "Pastry", 0, 2, ""), (int?)3), (CardTemple)1), GetTexture("pastry_grimora.png"), GetTexture("pastry_grimora_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)GiveStats.AbilityID })), false);
			ScrybeCompat.SetManaCost(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardManager.New("bbp_magnificus", "pastry", "Booby-Trapped Pastry", 0, 1, ""), (CardTemple)3), GetTexture("pastry_magnificus.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetMagnificusAbility("Steel Trap", (Ability)30) }), 1);
			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.SetGlobalSpell(CardExtensions.AddAbilities(CardExtensions.SetPortraitAndEmission(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_grimora", "meetBun", "Drippy Meet Bun", 0, 0, ""), (int?)1), (CardTemple)1), GetTexture("meetBun_grimora.png"), GetTexture("meetBun_grimora_emission.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetGrimoraAbility("Spirit Bearer", (Ability)51) })), false);
			ScrybeCompat.SetManaCost(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardManager.New("bbp_magnificus", "meetBun", "Gooey Meet Bun", 0, 2, ""), (CardTemple)3), GetTexture("meetBun_magnificus.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)ScrybeCompat.GetMagnificusAbility("Gooey", (Ability)83) }), 1);
			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.SetPortraitAndEmission(CardExtensions.AddAbilities(CardExtensions.SetCardTemple(CardExtensions.SetBonesCost(CardManager.New("bbp_grimora", "scones", "Scones", 0, 1, ""), (int?)2), (CardTemple)1), (Ability[])(object)new Ability[1] { (Ability)68 }), GetTexture("scones_grimora.png"), GetTexture("scones_grimora_emission.png"), (FilterMode?)null), false);
			ScrybeCompat.SetManaCost(CardExtensions.AddAbilities(CardExtensions.SetPortrait(CardExtensions.SetCardTemple(CardManager.New("bbp_magnificus", "scones", "Mox Scones", 0, 3, ""), (CardTemple)3), GetTexture("scones_magnificus.png"), (FilterMode?)null), (Ability[])(object)new Ability[1] { (Ability)(int)Scryb