Decompiled source of KeysCards v2.1.0

KeysCards.dll

Decompiled 2 weeks 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 BepInEx;
using CardChoiceSpawnUniqueCardPatch.CustomCategories;
using CardThemeLib;
using HarmonyLib;
using Jotunn.Utils;
using KeysCards;
using KeysCards.Cards;
using ModdingUtils.Extensions;
using ModdingUtils.MonoBehaviours;
using ModdingUtils.Utils;
using Photon.Pun;
using RarityLib.Utils;
using Sonigon;
using TMPro;
using UnboundLib;
using UnboundLib.Cards;
using UnboundLib.GameModes;
using UnboundLib.Networking;
using UnboundLib.Utils;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("KeysCards")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("KeysCards")]
[assembly: AssemblyTitle("KeysCards")]
[assembly: AssemblyVersion("1.0.0.0")]
public class ColaPotionHitPoison : RayHitEffect
{
	[Header("Sounds")]
	public SoundEvent soundEventDamageOverTime;

	[Header("Settings")]
	public float time = 2f;

	public float interval = 0.5f;

	public Color color = new Color(46f / 85f, 0.44313726f, 0.38431373f);

	private void Start()
	{
	}

	public override HasToReturn DoHitEffect(HitInfo hit)
	{
		//IL_0015: Unknown result type (might be due to invalid IL or missing references)
		//IL_00dc: 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_0084: 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_009e: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
		if (!Object.op_Implicit((Object)(object)hit.transform))
		{
			return (HasToReturn)1;
		}
		RayHitPoison[] componentsInChildren = ((Component)((Component)this).transform.root).GetComponentsInChildren<RayHitPoison>();
		ProjectileHit componentInParent = ((Component)this).GetComponentInParent<ProjectileHit>();
		DamageOverTime component = ((Component)hit.transform).GetComponent<DamageOverTime>();
		if (Object.op_Implicit((Object)(object)component) && (Object)(object)((Component)this).GetComponentInParent<ProjectileHit>().ownPlayer != (Object)(object)((Component)component).GetComponent<CharacterData>().player)
		{
			component.TakeDamageOverTime((componentInParent.damage + 10f) * new Vector2(0.3f, 0.3f), Vector2.op_Implicit(((Component)((Component)this).GetComponentInParent<ProjectileHit>().ownPlayer).transform.position), 3f, 0.25f, color, (SoundEvent)null, ((Component)this).GetComponentInParent<ProjectileHit>().ownWeapon, ((Component)this).GetComponentInParent<ProjectileHit>().ownPlayer, true);
		}
		return (HasToReturn)1;
	}
}
public class GregHitPoison : RayHitEffect
{
	[Header("Sounds")]
	public SoundEvent soundEventDamageOverTime;

	[Header("Settings")]
	public float time = 2f;

	public float interval = 0.5f;

	public Color color = Color.blue;

	private void Start()
	{
	}

	public override HasToReturn DoHitEffect(HitInfo hit)
	{
		//IL_0015: Unknown result type (might be due to invalid IL or missing references)
		//IL_00fa: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0087: Unknown result type (might be due to invalid IL or missing references)
		//IL_008c: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a7: 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_00c1: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d1: Unknown result type (might be due to invalid IL or missing references)
		if (!Object.op_Implicit((Object)(object)hit.transform))
		{
			return (HasToReturn)1;
		}
		RayHitPoison[] componentsInChildren = ((Component)((Component)this).transform.root).GetComponentsInChildren<RayHitPoison>();
		ProjectileHit componentInParent = ((Component)this).GetComponentInParent<ProjectileHit>();
		DamageOverTime component = ((Component)hit.transform).GetComponent<DamageOverTime>();
		if (Object.op_Implicit((Object)(object)component) && (Object)(object)((Component)this).GetComponentInParent<ProjectileHit>().ownPlayer != (Object)(object)((Component)component).GetComponent<CharacterData>().player)
		{
			component.TakeDamageOverTime((componentInParent.damage + 20f) * new Vector2(0.5f, 0.5f) * (float)CardCheck.Amount(((Component)this).GetComponentInParent<ProjectileHit>().ownPlayer, "Familiars Friend"), Vector2.op_Implicit(((Component)((Component)this).GetComponentInParent<ProjectileHit>().ownPlayer).transform.position), 2f, 0.5f, color, (SoundEvent)null, ((Component)this).GetComponentInParent<ProjectileHit>().ownWeapon, ((Component)this).GetComponentInParent<ProjectileHit>().ownPlayer, true);
		}
		return (HasToReturn)1;
	}
}
namespace KeysCards
{
	public class CardCheck : MonoBehaviour
	{
		internal static int hiddenAvailable;

		public static int Amount(Player player, string cardName)
		{
			List<CardInfo> currentCards = player.data.currentCards;
			int num = 0;
			for (int num2 = currentCards.Count - 1; num2 >= 0; num2--)
			{
				if (currentCards[num2].cardName == cardName)
				{
					num++;
				}
			}
			return num;
		}

		public static string getTreasure()
		{
			return Random.Range(0, 10) switch
			{
				0 => ((Object)((Component)GiantsGauntlet.self).gameObject).name, 
				1 => ((Object)((Component)DeadMans.self).gameObject).name, 
				2 => ((Object)((Component)GrovetendersShield.self).gameObject).name, 
				3 => ((Object)((Component)YvrellsStaff.self).gameObject).name, 
				4 => ((Object)((Component)PickpocketsDagger.self).gameObject).name, 
				5 => ((Object)((Component)ZephyrsBlessing.self).gameObject).name, 
				6 => ((Object)((Component)DemetersBounty.self).gameObject).name, 
				7 => ((Object)((Component)ApollosQuiver.self).gameObject).name, 
				8 => ((Object)((Component)DraculasDagger.self).gameObject).name, 
				9 => ((Object)((Component)FamiliarsPlush.self).gameObject).name, 
				_ => null, 
			};
		}
	}
	[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.*/)]
	[BepInPlugin("com.keys.rounds.KeysCards", "KeysCards", "2.1.0")]
	[BepInProcess("Rounds.exe")]
	public class KeysCards : BaseUnityPlugin
	{
		private static readonly AssetBundle Bundle = AssetUtils.LoadAssetBundleFromResources("keysassets", typeof(KeysCards).Assembly);

		public static AssetBundle ArtAsset = Bundle;

		public static GameObject AngelicArt = Bundle.LoadAsset<GameObject>("C_Angelic");

		public static GameObject BottomlessArt = Bundle.LoadAsset<GameObject>("C_Bottomless");

		public static GameObject BoxingGloveArt = Bundle.LoadAsset<GameObject>("C_BoxingGlove");

		public static GameObject NewSneakersArt = Bundle.LoadAsset<GameObject>("C_NewSneakers");

		public static GameObject BunchOfKnivesArt = Bundle.LoadAsset<GameObject>("C_BunchOfKnives");

		public static GameObject CloakAndDaggerArt = Bundle.LoadAsset<GameObject>("C_CloakAndDagger");

		public static GameObject CompassArt = Bundle.LoadAsset<GameObject>("C_Compass");

		public static GameObject CrimsonPotionArt = Bundle.LoadAsset<GameObject>("C_CrimsonPotion");

		public static GameObject CeruleanPotionArt = Bundle.LoadAsset<GameObject>("C_CeruleanPotion");

		public static GameObject CitrinePotionArt = Bundle.LoadAsset<GameObject>("C_CitrinePotion");

		public static GameObject AlchemistArt = Bundle.LoadAsset<GameObject>("C_Alchemist");

		public static GameObject TreasureMapArt = Bundle.LoadAsset<GameObject>("C_TreasureMap");

		public static GameObject CursedPlunderArt = Bundle.LoadAsset<GameObject>("C_CursedPlunder");

		public static GameObject DruidsBlessingArt = Bundle.LoadAsset<GameObject>("C_DruidsBlessing");

		public static GameObject LootBoxArt = Bundle.LoadAsset<GameObject>("C_LootBox");

		public static GameObject TreasureTroveArt = Bundle.LoadAsset<GameObject>("C_TreasureTrove");

		public static GameObject MendingReloadArt = Bundle.LoadAsset<GameObject>("C_MendingReload");

		public static GameObject MirrorArt = Bundle.LoadAsset<GameObject>("C_Mirror");

		public static GameObject MetamorphosisArt = Bundle.LoadAsset<GameObject>("C_Metamorphosis");

		public static GameObject HeartArt = Bundle.LoadAsset<GameObject>("C_Heart");

		public static GameObject PincersArt = Bundle.LoadAsset<GameObject>("C_Pincers");

		public static GameObject CarapaceArt = Bundle.LoadAsset<GameObject>("C_Carapace");

		public static GameObject MoonwalkerArt = Bundle.LoadAsset<GameObject>("C_Moonwalker");

		public static GameObject RaidBossArt = Bundle.LoadAsset<GameObject>("C_RaidBoss");

		public static GameObject SentryArt = Bundle.LoadAsset<GameObject>("C_Sentry");

		public static GameObject SnipersNestArt = Bundle.LoadAsset<GameObject>("C_SnipersNest");

		public static GameObject WarpathArt = Bundle.LoadAsset<GameObject>("C_Warpath");

		public static GameObject GoldenEggArt = Bundle.LoadAsset<GameObject>("C_TheGoldenEgg");

		public static GameObject EggsBlessingArt = Bundle.LoadAsset<GameObject>("C_EggsBlessing");

		public static GameObject NimbleArt = Bundle.LoadAsset<GameObject>("C_Nimble");

		public static GameObject YvrellsArt = Bundle.LoadAsset<GameObject>("C_Yvrells");

		public static GameObject PickpocketsArt = Bundle.LoadAsset<GameObject>("C_Pickpockets");

		public static GameObject DeadMansArt = Bundle.LoadAsset<GameObject>("C_DeadMans");

		public static GameObject GiantsArt = Bundle.LoadAsset<GameObject>("C_Giants");

		public static GameObject GrovetendersArt = Bundle.LoadAsset<GameObject>("C_Grovetenders");

		public static GameObject ZephyrsArt = Bundle.LoadAsset<GameObject>("C_Zephyrs");

		public static GameObject DemetersArt = Bundle.LoadAsset<GameObject>("C_Demeters");

		public static GameObject ApollosArt = Bundle.LoadAsset<GameObject>("C_Quiver");

		public static GameObject VampiricArt = Bundle.LoadAsset<GameObject>("C_Vampiric");

		public static GameObject GAArt = Bundle.LoadAsset<GameObject>("C_GuardianAngel");

		public static GameObject PrecisionArt = Bundle.LoadAsset<GameObject>("C_Precision");

		public static GameObject DefensiveDiceArt = Bundle.LoadAsset<GameObject>("C_DefensiveDice");

		public static GameObject MouseArt = Bundle.LoadAsset<GameObject>("C_Mouse");

		public static GameObject SawShotArt = Bundle.LoadAsset<GameObject>("C_SawShot");

		public static GameObject FHArt = Bundle.LoadAsset<GameObject>("C_FasterHardware");

		public static GameObject OverdriveArt = Bundle.LoadAsset<GameObject>("C_Overdrive");

		public static GameObject SlowStartArt = Bundle.LoadAsset<GameObject>("C_SlowStart");

		public static GameObject NimblePlusArt = Bundle.LoadAsset<GameObject>("C_NimblePlus");

		public static GameObject BewitchingArt = Bundle.LoadAsset<GameObject>("C_Bewitching");

		public static GameObject HexShotArt = Bundle.LoadAsset<GameObject>("C_HexShot");

		public static GameObject NuclearReactorArt = Bundle.LoadAsset<GameObject>("C_NuclearReactor");

		public static GameObject LibraryArt = Bundle.LoadAsset<GameObject>("C_Library");

		public static GameObject AllorNothingArt = Bundle.LoadAsset<GameObject>("C_AllorNothing");

		public static GameObject BindingChainsArt = Bundle.LoadAsset<GameObject>("C_BindingChains");

		public static GameObject FamiliarsArt = Bundle.LoadAsset<GameObject>("C_Familiars");

		public static GameObject DraculasArt = Bundle.LoadAsset<GameObject>("C_Draculas");

		public static GameObject ExpeditionArt = Bundle.LoadAsset<GameObject>("C_Expedition");

		public static GameObject FerocityArt = Bundle.LoadAsset<GameObject>("C_Ferocity");

		public static GameObject DroneArt = Bundle.LoadAsset<GameObject>("C_Drone");

		public static GameObject ScaredyCatArt = Bundle.LoadAsset<GameObject>("C_ScaredyCat");

		public static GameObject HexingReloadArt = Bundle.LoadAsset<GameObject>("C_HexingReload");

		public static GameObject GroveRestArt = Bundle.LoadAsset<GameObject>("C_GroveRest");

		public static GameObject HeavensentArt = Bundle.LoadAsset<GameObject>("C_Heavensent");

		public static GameObject ThornShotArt = Bundle.LoadAsset<GameObject>("C_ThornShot");

		public static GameObject OvercritArt = Bundle.LoadAsset<GameObject>("C_Overcrit");

		public static GameObject InfernalArt = Bundle.LoadAsset<GameObject>("C_Infernal");

		public static GameObject BurningBindsArt = Bundle.LoadAsset<GameObject>("C_BurningBinds");

		public static GameObject MagicTrickArt = Bundle.LoadAsset<GameObject>("C_MagicTrick");

		public static GameObject CoralPotionArt = Bundle.LoadAsset<GameObject>("C_CoralPotion");

		public static GameObject ColaPotionArt = Bundle.LoadAsset<GameObject>("C_ColaPotion");

		public static GameObject FortressArt = Bundle.LoadAsset<GameObject>("C_Fortress");

		public static GameObject DancingBulletArt = Bundle.LoadAsset<GameObject>("C_DancingBullet");

		public static GameObject CatTowerArt = Bundle.LoadAsset<GameObject>("C_CatTower");

		private const string ModId = "com.keys.rounds.KeysCards";

		private const string ModName = "KeysCards";

		public const string Version = "2.1.0";

		public const string ModInitials = "KEYS";

		internal static CardCategory NonTreasure;

		internal static CardCategory Treasure;

		internal static CardCategory Iron;

		internal static CardCategory Egg;

		internal static CardCategory Hatchling;

		internal static CardCategory Blessing;

		internal static CardCategory Alchemy;

		internal static CardCategory Automatic;

		internal static CardCategory RaidPip;

		internal static CardCategory GroveSlow;

		internal static CardCategory HexiLoad;

		internal static CardCategory Heavens;

		internal static CardCategory ThornS;

		internal static CardCategory Lootbox;

		internal static CardCategory OverC;

		internal static CardCategory BurnB;

		internal static CardCategory CatT;

		public static KeysCards instance { get; private set; }

		private void Awake()
		{
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0052: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0080: Unknown result type (might be due to invalid IL or missing references)
			//IL_0090: Unknown result type (might be due to invalid IL or missing references)
			//IL_0095: 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_00aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_00af: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b9: Expected O, but got Unknown
			//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00de: 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_00f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0102: Expected O, but got Unknown
			//IL_00fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_010d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0112: Unknown result type (might be due to invalid IL or missing references)
			//IL_0122: Unknown result type (might be due to invalid IL or missing references)
			//IL_0127: 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_013c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0141: Unknown result type (might be due to invalid IL or missing references)
			//IL_014b: Expected O, but got Unknown
			//IL_0146: Unknown result type (might be due to invalid IL or missing references)
			//IL_0156: 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_016b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0170: 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_0185: Unknown result type (might be due to invalid IL or missing references)
			//IL_018a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0194: Expected O, but got Unknown
			//IL_018f: Unknown result type (might be due to invalid IL or missing references)
			//IL_019f: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b9: 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_01ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01dd: Expected O, but got Unknown
			//IL_01d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_01fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0202: Unknown result type (might be due to invalid IL or missing references)
			//IL_0207: Unknown result type (might be due to invalid IL or missing references)
			//IL_0217: Unknown result type (might be due to invalid IL or missing references)
			//IL_021c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0226: Expected O, but got Unknown
			//IL_0221: Unknown result type (might be due to invalid IL or missing references)
			//IL_022c: Unknown result type (might be due to invalid IL or missing references)
			RarityUtils.AddRarity("Hidden", 0.2f, new Color(1f, 7f / 15f, 0.21960784f), new Color(0.6313726f, 0.29411766f, 7f / 51f));
			RarityUtils.AddRarity("Treasure", 0.095f, new Color(84f / 85f, 47f / 51f, 0.41568628f), new Color(0.83137256f, 0.77254903f, 0.3372549f));
			CardThemeLib.instance.CreateOrGetType("Heavenly", new CardThemeColor
			{
				bgColor = new Color(0.19f, 0.18f, 0.13f),
				targetColor = new Color(0.86f, 0.79f, 0.57f)
			});
			CardThemeLib.instance.CreateOrGetType("Orange", new CardThemeColor
			{
				bgColor = new Color(0.1f, 0.05f, 0.025f),
				targetColor = new Color(0.98f, 0.54f, 0.223f)
			});
			CardThemeLib.instance.CreateOrGetType("Hex", new CardThemeColor
			{
				bgColor = new Color(0.04f, 0f, 0.08f),
				targetColor = new Color(0.44f, 0.055f, 0.88f)
			});
			CardThemeLib.instance.CreateOrGetType("Forest", new CardThemeColor
			{
				bgColor = new Color(0.04f, 0f, 0.08f),
				targetColor = new Color(0.44f, 0.055f, 0.88f)
			});
			CardThemeLib.instance.CreateOrGetType("Chains", new CardThemeColor
			{
				bgColor = new Color(0.064f, 0.053f, 0.1f),
				targetColor = new Color(0.64f, 0.53f, 1f)
			});
			CardThemeLib.instance.CreateOrGetType("Hidden", new CardThemeColor
			{
				bgColor = new Color(0.084f, 0.057f, 0.036f),
				targetColor = new Color(0.845f, 0.5f, 0.357f)
			});
			new Harmony("com.keys.rounds.KeysCards").PatchAll();
		}

		private void Start()
		{
			instance = this;
			NonTreasure = CustomCardCategories.instance.CardCategory("__NonTreasure__");
			Treasure = CustomCardCategories.instance.CardCategory("Treasure");
			Iron = CustomCardCategories.instance.CardCategory("Iron");
			Egg = CustomCardCategories.instance.CardCategory("Egg");
			Hatchling = CustomCardCategories.instance.CardCategory("Hatchling");
			Blessing = CustomCardCategories.instance.CardCategory("Blessing");
			Alchemy = CustomCardCategories.instance.CardCategory("Alchemy");
			Automatic = CustomCardCategories.instance.CardCategory("Automatic");
			RaidPip = CustomCardCategories.instance.CardCategory("RaidPip");
			GroveSlow = CustomCardCategories.instance.CardCategory("GroveSlow");
			HexiLoad = CustomCardCategories.instance.CardCategory("HexiLoad");
			Heavens = CustomCardCategories.instance.CardCategory("Heavens");
			ThornS = CustomCardCategories.instance.CardCategory("ThornS");
			Lootbox = CustomCardCategories.instance.CardCategory("Lootbox");
			OverC = CustomCardCategories.instance.CardCategory("OverC");
			BurnB = CustomCardCategories.instance.CardCategory("BurnB");
			CatT = CustomCardCategories.instance.CardCategory("CatT");
			CustomCard.BuildCard<Nimble>();
			CustomCard.BuildCard<Warpath>();
			CustomCard.BuildCard<MendingReload>();
			CustomCard.BuildCard<SnipersNest>();
			CustomCard.BuildCard<Sentry>();
			CustomCard.BuildCard<Mirror>();
			CustomCard.BuildCard<RaidBoss>();
			CustomCard.BuildCard<Critical>();
			CustomCard.BuildCard<CrimsonPotion>();
			CustomCard.BuildCard<CeruleanPotion>();
			CustomCard.BuildCard<CitrinePotion>();
			CustomCard.BuildCard<CoralPotion>();
			CustomCard.BuildCard<ColaPotion>();
			CustomCard.BuildCard<Moonwalker>();
			CustomCard.BuildCard<TreasureTrove>();
			CustomCard.BuildCard<TreasureMap>();
			CustomCard.BuildCard<CompassCard>();
			CustomCard.BuildCard<Metamorphosis>((Action<CardInfo>)delegate(CardInfo card)
			{
				Metamorphosis.self = card;
			});
			CustomCard.BuildCard<IronCarapace>();
			CustomCard.BuildCard<IronPincers>();
			CustomCard.BuildCard<IronHeart>();
			CustomCard.BuildCard<Bounce>();
			CustomCard.BuildCard<Angelic>();
			CustomCard.BuildCard<NewSneakers>();
			CustomCard.BuildCard<BottomlessPockets>();
			CustomCard.BuildCard<TrapChest>();
			CustomCard.BuildCard<Infernal>();
			CustomCard.BuildCard<VampiricBlock>();
			CustomCard.BuildCard<GuardianAngel>();
			CustomCard.BuildCard<Precision>();
			CustomCard.BuildCard<CritBlock>();
			CustomCard.BuildCard<Mouse>();
			CustomCard.BuildCard<AllOrNothing>();
			CustomCard.BuildCard<BindingChains>();
			CustomCard.BuildCard<Ferocity>();
			CustomCard.BuildCard<Expedition>();
			CustomCard.BuildCard<ScaredyCat>();
			CustomCard.BuildCard<Fortress>();
			CustomCard.BuildCard<DancingBullets>();
			CustomCard.BuildCard<Duplicate>();
			CustomCard.BuildCard<TheGoldenEgg>();
			CustomCard.BuildCard<TheEggsBlessing>((Action<CardInfo>)delegate(CardInfo card)
			{
				TheEggsBlessing.self = card;
			});
			CustomCard.BuildCard<Alchemist>((Action<CardInfo>)delegate(CardInfo card)
			{
				Alchemist.self = card;
			});
			CustomCard.BuildCard<GrovetendersRest>((Action<CardInfo>)delegate(CardInfo card)
			{
				GrovetendersRest.self = card;
			});
			CustomCard.BuildCard<HexingReload>((Action<CardInfo>)delegate(CardInfo card)
			{
				HexingReload.self = card;
			});
			CustomCard.BuildCard<Heavensent>((Action<CardInfo>)delegate(CardInfo card)
			{
				Heavensent.self = card;
			});
			CustomCard.BuildCard<ThornShot>((Action<CardInfo>)delegate(CardInfo card)
			{
				ThornShot.self = card;
			});
			CustomCard.BuildCard<Overcrit>((Action<CardInfo>)delegate(CardInfo card)
			{
				Overcrit.self = card;
			});
			CustomCard.BuildCard<BurningBinds>((Action<CardInfo>)delegate(CardInfo card)
			{
				BurningBinds.self = card;
			});
			CustomCard.BuildCard<CatTower>((Action<CardInfo>)delegate(CardInfo card)
			{
				CatTower.self = card;
			});
			CustomCard.BuildCard<GiantsGauntlet>((Action<CardInfo>)delegate(CardInfo card)
			{
				GiantsGauntlet.self = card;
			});
			CustomCard.BuildCard<DeadMans>((Action<CardInfo>)delegate(CardInfo card)
			{
				DeadMans.self = card;
			});
			CustomCard.BuildCard<YvrellsStaff>((Action<CardInfo>)delegate(CardInfo card)
			{
				YvrellsStaff.self = card;
			});
			CustomCard.BuildCard<GrovetendersShield>((Action<CardInfo>)delegate(CardInfo card)
			{
				GrovetendersShield.self = card;
			});
			CustomCard.BuildCard<PickpocketsDagger>((Action<CardInfo>)delegate(CardInfo card)
			{
				PickpocketsDagger.self = card;
			});
			CustomCard.BuildCard<ZephyrsBlessing>((Action<CardInfo>)delegate(CardInfo card)
			{
				ZephyrsBlessing.self = card;
			});
			CustomCard.BuildCard<DemetersBounty>((Action<CardInfo>)delegate(CardInfo card)
			{
				DemetersBounty.self = card;
			});
			CustomCard.BuildCard<ApollosQuiver>((Action<CardInfo>)delegate(CardInfo card)
			{
				ApollosQuiver.self = card;
			});
			CustomCard.BuildCard<DraculasDagger>((Action<CardInfo>)delegate(CardInfo card)
			{
				DraculasDagger.self = card;
			});
			CustomCard.BuildCard<FamiliarsPlush>((Action<CardInfo>)delegate(CardInfo card)
			{
				FamiliarsPlush.self = card;
			});
			CustomCard.BuildCard<SawShot>();
			CustomCard.BuildCard<SlowStart>();
			CustomCard.BuildCard<DruidsBlessing>();
			CustomCard.BuildCard<FasterHardware>();
			CustomCard.BuildCard<Overdrive>();
			CustomCard.BuildCard<NimblePlus>();
			CustomCard.BuildCard<NuclearReactor>();
			CustomCard.BuildCard<EclipticLibrary>();
			CustomCard.BuildCard<HexShot>();
			CustomCard.BuildCard<Bewitching>();
			GameModeManager.AddHook("GameStart", (Func<IGameModeHandler, IEnumerator>)GameStart);
			GameModeManager.AddHook("RoundEnd", (Func<IGameModeHandler, IEnumerator>)EggRoundPass);
			ExtensionMethods.ExecuteAfterSeconds((MonoBehaviour)(object)instance, 1f, (Action)delegate
			{
				foreach (Card value in CardManager.cards.Values)
				{
					if (!value.cardInfo.categories.Contains(Treasure))
					{
						value.cardInfo.categories = CollectionExtensions.AddToArray<CardCategory>(value.cardInfo.categories, NonTreasure);
					}
				}
			});
		}

		private IEnumerator GameStart(IGameModeHandler gm)
		{
			RarityUtils.AjustCardRarityModifier(Cards.instance.GetCardWithObjectName(((Object)((Component)Alchemist.self).gameObject).name), 3f, 1f);
			RarityUtils.AjustCardRarityModifier(Cards.instance.GetCardWithObjectName(((Object)((Component)GrovetendersRest.self).gameObject).name), 3f, 1f);
			RarityUtils.AjustCardRarityModifier(Cards.instance.GetCardWithObjectName(((Object)((Component)Heavensent.self).gameObject).name), 3f, 1f);
			RarityUtils.AjustCardRarityModifier(Cards.instance.GetCardWithObjectName(((Object)((Component)HexingReload.self).gameObject).name), 3f, 1f);
			RarityUtils.AjustCardRarityModifier(Cards.instance.GetCardWithObjectName(((Object)((Component)ThornShot.self).gameObject).name), 3f, 1f);
			RarityUtils.AjustCardRarityModifier(Cards.instance.GetCardWithObjectName(((Object)((Component)Overcrit.self).gameObject).name), 3f, 1f);
			RarityUtils.AjustCardRarityModifier(Cards.instance.GetCardWithObjectName(((Object)((Component)BurningBinds.self).gameObject).name), 3f, 1f);
			RarityUtils.AjustCardRarityModifier(Cards.instance.GetCardWithObjectName(((Object)((Component)CatTower.self).gameObject).name), 3f, 1f);
			GameObject newgameObject = Object.Instantiate<GameObject>(ArtAsset.LoadAsset<GameObject>("A_HexDebuff"));
			Object.Destroy((Object)(object)newgameObject);
			foreach (Player player in PlayerManager.instance.players)
			{
				if (!CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(Treasure))
				{
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(Treasure);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(Iron);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(Hatchling);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(Blessing);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(Alchemy);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(Automatic);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(GroveSlow);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(HexiLoad);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(Heavens);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(ThornS);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(OverC);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(BurnB);
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(CatT);
				}
			}
			yield break;
		}

		private IEnumerator EggRoundPass(IGameModeHandler gm)
		{
			foreach (Player player in PlayerManager.instance.players)
			{
				if ((Object)(object)((Component)player).GetComponent<HatchlingsMono>() != (Object)null)
				{
					((Component)player).GetComponent<HatchlingsMono>().roundspassed++;
					((Component)player).GetComponent<HatchlingsMono>().checkhatch();
				}
			}
			yield break;
		}
	}
}
namespace KeysCards.Cards
{
	internal class Alchemist : CustomCard
	{
		public static CardInfo self;

		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			cardInfo.categories = (CardCategory[])(object)new CardCategory[1] { KeysCards.Alchemy };
			block.cdMultiplier = 0.8f;
			statModifiers.health = 1.2f;
			cardInfo.allowMultiple = false;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() != (Object)null)
			{
				((Component)player).GetComponent<PotionMono>().Alchemist(active: true);
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() != (Object)null)
			{
				((Component)player).GetComponent<PotionMono>().Alchemist(active: false);
			}
		}

		protected override string GetTitle()
		{
			return "Alchemist";
		}

		protected override string GetDescription()
		{
			return "<b><size=60><color=#DA7F5B><size=50>Any Potion + Any Potion</size></b></color></size>\nAll <b><color=#73b366>Potion</b></color> cooldowns are halved and potions last for 2 extra seconds\n<size=42><b><color=#787878>Buffs dont stack";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.AlchemistArt;
		}

		protected override Rarity GetRarity()
		{
			//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_000e: Unknown result type (might be due to invalid IL or missing references)
			return RarityUtils.GetRarity("Hidden");
		}

		protected override CardInfoStat[] GetStats()
		{
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Expected O, but got Unknown
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Expected O, but got Unknown
			return (CardInfoStat[])(object)new CardInfoStat[2]
			{
				new CardInfoStat
				{
					positive = true,
					stat = "Health",
					amount = "+20%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = true,
					stat = "Block cooldown",
					amount = "-20%",
					simepleAmount = (SimpleAmount)0
				}
			};
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_000c: 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_0014: Unknown result type (might be due to invalid IL or missing references)
			return CardThemeLib.instance.CreateOrGetType("Hidden", (CardThemeColor)null);
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	internal class AllOrNothing : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			statModifiers.health = 0.75f;
			gun.reloadTime = 2f / 3f;
			block.cdAdd = 0.5f;
			gun.damage = 1.55f;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
		}

		protected override string GetTitle()
		{
			return "All or Nothing";
		}

		protected override string GetDescription()
		{
			return "";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.AllorNothingArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)0;
		}

		protected override CardInfoStat[] GetStats()
		{
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Expected O, but got Unknown
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Expected O, but got Unknown
			//IL_0061: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Unknown result type (might be due to invalid IL or missing references)
			//IL_008b: Expected O, but got Unknown
			//IL_008d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0092: Unknown result type (might be due to invalid IL or missing references)
			//IL_0099: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00af: 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_00b7: Expected O, but got Unknown
			return (CardInfoStat[])(object)new CardInfoStat[4]
			{
				new CardInfoStat
				{
					positive = true,
					stat = "Damage",
					amount = "+65%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = true,
					stat = "Reload speed",
					amount = "+50%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = false,
					stat = "Health",
					amount = "-30%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = false,
					stat = "Block cooldown",
					amount = "+0.5s",
					simepleAmount = (SimpleAmount)0
				}
			};
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_000c: 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_0014: Unknown result type (might be due to invalid IL or missing references)
			return CardThemeLib.instance.CreateOrGetType("Orange", (CardThemeColor)null);
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	internal class Angelic : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			statModifiers.numberOfJumps = 1;
			statModifiers.movementSpeed = 1.1f;
			gun.damage = 1.1f;
			gun.gravity = 0.65f;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if (CardCheck.Amount(player, "Guardian Angel") == 1 && CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.Heavens))
			{
				CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Remove(KeysCards.Heavens);
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if (!CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.Heavens) && CardCheck.Amount(player, "Angelic") == 1)
			{
				CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(KeysCards.Heavens);
			}
		}

		protected override string GetTitle()
		{
			return "Angelic";
		}

		protected override string GetDescription()
		{
			return "";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.AngelicArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)0;
		}

		protected override CardInfoStat[] GetStats()
		{
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Expected O, but got Unknown
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Expected O, but got Unknown
			//IL_0061: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Unknown result type (might be due to invalid IL or missing references)
			//IL_008b: Expected O, but got Unknown
			//IL_008d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0092: Unknown result type (might be due to invalid IL or missing references)
			//IL_0099: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00af: 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_00b7: Expected O, but got Unknown
			return (CardInfoStat[])(object)new CardInfoStat[4]
			{
				new CardInfoStat
				{
					positive = true,
					stat = "Jumps",
					amount = "+1",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = true,
					stat = "Move speed",
					amount = "+10%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = true,
					stat = "Damage",
					amount = "+10%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = true,
					stat = "Bullet gravity",
					amount = "-35%",
					simepleAmount = (SimpleAmount)0
				}
			};
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_000c: 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_0014: Unknown result type (might be due to invalid IL or missing references)
			return CardThemeLib.instance.CreateOrGetType("Heavenly", (CardThemeColor)null);
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	internal class ApollosQuiver : CustomCard
	{
		public static CardInfo self;

		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			cardInfo.categories = (CardCategory[])(object)new CardCategory[1] { KeysCards.Treasure };
			gun.reloadTime = 0.71428573f;
			gun.attackSpeed = 0.7692308f;
			gun.ammo = 3;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)player).gameObject.GetComponent<ApollosQuiverMono>() == (Object)null)
			{
				((Component)player).gameObject.AddComponent<ApollosQuiverMono>();
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<ApollosQuiverMono>() != (Object)null && CardCheck.Amount(player, "Apollos Quiver") == 1)
			{
				Object.Destroy((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<ApollosQuiverMono>());
			}
		}

		protected override string GetTitle()
		{
			return "Apollos Quiver";
		}

		protected override string GetDescription()
		{
			return "<b><color=#ede624>Treasure</b></color>\nGain +50% attack speed for a brief 0.5s after reloading.";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.ApollosArt;
		}

		protected override Rarity GetRarity()
		{
			//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_000e: Unknown result type (might be due to invalid IL or missing references)
			return RarityUtils.GetRarity("Treasure");
		}

		protected override CardInfoStat[] GetStats()
		{
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Expected O, but got Unknown
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Expected O, but got Unknown
			//IL_0061: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Unknown result type (might be due to invalid IL or missing references)
			//IL_008b: Expected O, but got Unknown
			return (CardInfoStat[])(object)new CardInfoStat[3]
			{
				new CardInfoStat
				{
					positive = true,
					stat = "Reload speed",
					amount = "+40%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = true,
					stat = "Attack speed",
					amount = "+30%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = true,
					stat = "Ammo",
					amount = "+3",
					simepleAmount = (SimpleAmount)0
				}
			};
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (CardThemeColorType)1;
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	public class ApollosQuiverBuffMono : ReversibleEffect
	{
		private ReversibleColorEffect colorEffect;

		private readonly Color color = new Color(0.75f, 0.75f, 0.05f, 0.1f);

		public float asBonus;

		public int ammoNorm;

		public override void OnStart()
		{
			//IL_0053: Unknown result type (might be due to invalid IL or missing references)
			GunStatModifier gunStatModifier = base.gunStatModifier;
			gunStatModifier.attackSpeed_mult *= 1f / (1f + (float)CardCheck.Amount(base.player, "Apollos Quiver") * 0.5f);
			colorEffect = ((Component)base.player).gameObject.AddComponent<ReversibleColorEffect>();
			((ColorEffect)colorEffect).SetColor(color);
			colorEffect.SetLivesToEffect(1);
		}

		public override void OnOnDisable()
		{
			((ColorEffect)colorEffect).Destroy();
			((ReversibleEffect)this).Destroy();
		}
	}
	public class ApollosQuiverMono : MonoBehaviour
	{
		private bool active = true;

		private float updateDelay = 0.1f;

		private float timeOfLastEffect = Time.time;

		private float startTime = Time.time;

		private Player player;

		private Block block;

		private Gun gun;

		private void Start()
		{
			player = ((Component)this).GetComponent<Player>();
			block = ((Component)this).GetComponent<Block>();
			gun = ((Component)this).GetComponent<Gun>();
		}

		public void Update()
		{
			if (!(Time.time >= startTime + updateDelay))
			{
				return;
			}
			ResetTimer();
			if (player.data.weaponHandler.gun.isReloading)
			{
				active = true;
				ResetEffectTimer();
			}
			if (!player.data.weaponHandler.gun.isReloading && active)
			{
				if ((Object)(object)((Component)player).gameObject.GetComponent<ApollosQuiverBuffMono>() == (Object)null)
				{
					Object.Destroy((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<ApollosQuiverBuffMono>());
				}
				((Component)((Component)((Component)this).GetComponent<Player>()).transform).gameObject.AddComponent<ApollosQuiverBuffMono>();
				Object.Destroy((Object)(object)((Component)((Component)this).GetComponent<Player>()).GetComponent<ApollosQuiverBuffMono>(), 0.5f);
				active = false;
			}
		}

		private void ResetTimer()
		{
			startTime = Time.time;
		}

		private void ResetEffectTimer()
		{
			timeOfLastEffect = Time.time;
		}
	}
	public class AutomaticMono : MonoBehaviour
	{
		public float cdMultiplier = 1f;
	}
	internal class Bewitching : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			cardInfo.allowMultiple = false;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)player).gameObject.GetComponent<AutomaticMono>() == (Object)null)
			{
				((Component)player).gameObject.AddComponent<AutomaticMono>();
				CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Remove(KeysCards.Automatic);
			}
			if ((Object)(object)((Component)player).gameObject.GetComponent<BewitchingMono>() == (Object)null)
			{
				((Component)player).gameObject.AddComponent<BewitchingMono>();
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<BewitchingMono>() != (Object)null)
			{
				Object.Destroy((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<BewitchingMono>());
			}
		}

		protected override string GetTitle()
		{
			return "Bewitching";
		}

		protected override string GetDescription()
		{
			return "Every <color=#b53131><b>5</b></color> seconds, <color=#a89062><b>automatically</b></color> apply <b><color=#836d8a>12</color> <color=#772791>Hex</b></color> to nearby enemies\n<size=48><b><color=#787878>Hex burns 1% max health per stack over 6 seconds";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.BewitchingArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)1;
		}

		protected override CardInfoStat[] GetStats()
		{
			return null;
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_000c: 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_0014: Unknown result type (might be due to invalid IL or missing references)
			return CardThemeLib.instance.CreateOrGetType("Hex", (CardThemeColor)null);
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	public class BewitchingMono : MonoBehaviour
	{
		private PhotonView view;

		public GameObject bewitchEffect;

		private Player player;

		private readonly float updateDelay = 5f;

		public float startTime = Time.time;

		private void Start()
		{
			//IL_0054: Unknown result type (might be due to invalid IL or missing references)
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_007f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0094: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
			player = ((Component)this).GetComponent<Player>();
			view = player.data.view;
			bewitchEffect = Object.Instantiate<GameObject>(KeysCards.ArtAsset.LoadAsset<GameObject>("A_Bewitching"), ((Component)player).transform);
			Transform transform = bewitchEffect.transform;
			transform.localScale *= 2f;
			bewitchEffect.transform.position = new Vector3(((Component)player).transform.position.x, ((Component)player).transform.position.y, ((Component)player).transform.position.z - 70f);
			bewitchEffect.GetComponent<Animator>().speed = 1f / ((Component)this).GetComponent<AutomaticMono>().cdMultiplier;
			bewitchEffect.GetComponent<Animator>().Play("Base Layer.CDStart", -1, 0f);
		}

		public void Update()
		{
			//IL_029f: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_02d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0103: Unknown result type (might be due to invalid IL or missing references)
			//IL_0118: Unknown result type (might be due to invalid IL or missing references)
			if (player.data.dead || !player.data.isPlaying)
			{
				startTime = 0f;
				return;
			}
			if (startTime == 0f)
			{
				startTime = Time.time;
				NetworkingManager.RPC(typeof(BewitchingMono), "SyncBewitch", new object[1] { player.playerID });
			}
			if (!(Time.time >= startTime + updateDelay * ((Component)this).GetComponent<AutomaticMono>().cdMultiplier))
			{
				return;
			}
			for (int i = 0; i < PlayerManager.instance.players.Count; i++)
			{
				Player val = PlayerManager.instance.players[i];
				if (!((Object)(object)val != (Object)(object)player) || val.data.dead || !(Vector3.Distance(((Component)val).transform.position, ((Component)((Component)this).transform).transform.position) < 6f * ((Component)this).transform.localScale.x) || val.teamID == player.teamID)
				{
					continue;
				}
				if (PhotonNetwork.OfflineMode)
				{
					if ((Object)(object)((Component)val).GetComponent<HexDebuffMono>() == (Object)null)
					{
						((Component)val).gameObject.AddComponent<HexDebuffMono>();
						((Component)val).GetComponent<HexDebuffMono>().stacks = 12;
					}
					else
					{
						((Component)val).GetComponent<HexDebuffMono>().stacks += 12;
						((Component)val).GetComponent<HexDebuffMono>().ticks = 0;
						((Component)val).GetComponent<HexDebuffMono>().effectSpawned.GetComponentInChildren<TMP_Text>().text = ((Component)val).GetComponent<HexDebuffMono>().stacks.ToString();
					}
				}
				else if (((Component)player).GetComponent<PhotonView>().IsMine)
				{
					NetworkingManager.RPC(typeof(BewitchingMono), "ApplyHex12", new object[1] { val.playerID });
				}
			}
			if (PhotonNetwork.OfflineMode)
			{
				bewitchEffect.GetComponent<Animator>().speed = 1f / ((Component)this).GetComponent<AutomaticMono>().cdMultiplier;
				bewitchEffect.GetComponent<Animator>().Play("Base Layer.CDStart", -1, 0f);
				bewitchEffect.transform.position = new Vector3(((Component)player).transform.position.x, ((Component)player).transform.position.y, ((Component)player).transform.position.z - 70f);
			}
			else if (((Component)player).GetComponent<PhotonView>().IsMine)
			{
				NetworkingManager.RPC(typeof(BewitchingMono), "SyncBewitch", new object[1] { player.playerID });
			}
			ResetTimer();
		}

		private void OnDestroy()
		{
			Object.Destroy((Object)(object)bewitchEffect);
		}

		private void ResetTimer()
		{
			startTime = Time.time;
		}

		[UnboundRPC]
		private static void SyncBewitch(int player)
		{
			//IL_0076: Unknown result type (might be due to invalid IL or missing references)
			//IL_0086: Unknown result type (might be due to invalid IL or missing references)
			//IL_0096: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a6: Unknown result type (might be due to invalid IL or missing references)
			Player val = PlayerManager.instance.players.Find((Player p) => p.playerID == player);
			GameObject val2 = ((Component)val).GetComponent<BewitchingMono>().bewitchEffect;
			val2.GetComponent<Animator>().speed = 1f / ((Component)val).GetComponent<AutomaticMono>().cdMultiplier;
			val2.GetComponent<Animator>().Play("Base Layer.CDStart", -1, 0f);
			val2.transform.position = new Vector3(((Component)val).transform.position.x, ((Component)val).transform.position.y, ((Component)val).transform.position.z - 70f);
		}

		[UnboundRPC]
		private static void ApplyHex12(int player)
		{
			Player val = PlayerManager.instance.players.Find((Player p) => p.playerID == player);
			if ((Object)(object)((Component)val).GetComponent<HexDebuffMono>() == (Object)null)
			{
				((Component)val).gameObject.AddComponent<HexDebuffMono>();
				((Component)val).GetComponent<HexDebuffMono>().stacks = 12;
			}
			else
			{
				((Component)val).GetComponent<HexDebuffMono>().stacks += 12;
				((Component)val).GetComponent<HexDebuffMono>().ticks = 0;
				((Component)val).GetComponent<HexDebuffMono>().effectSpawned.GetComponentInChildren<TMP_Text>().text = ((Component)val).GetComponent<HexDebuffMono>().stacks.ToString();
			}
		}
	}
	internal class BindingChains : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			cardInfo.allowMultiple = false;
			statModifiers.movementSpeed = 1.1f;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)player).gameObject.GetComponent<BindingChainsMono>() == (Object)null)
			{
				((Component)player).gameObject.AddComponent<BindingChainsMono>();
			}
			if (CardCheck.Amount(player, "Infernal") >= 1 && CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.BurnB))
			{
				CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Remove(KeysCards.BurnB);
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<BindingChainsMono>() != (Object)null)
			{
				Object.Destroy((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<BindingChainsMono>());
			}
			if (!CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.BurnB))
			{
				CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(KeysCards.BurnB);
			}
		}

		protected override string GetTitle()
		{
			return "Binding Chains";
		}

		protected override string GetDescription()
		{
			return "Chains attach to nearby enemies in sight that stun targets if they hold for 2 seconds\n<size=48><b><color=#787878>Players cannot be chained again for 5 seconds";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.BindingChainsArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)2;
		}

		protected override CardInfoStat[] GetStats()
		{
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Expected O, but got Unknown
			return (CardInfoStat[])(object)new CardInfoStat[1]
			{
				new CardInfoStat
				{
					positive = true,
					stat = "Movespeed",
					amount = "+10%",
					simepleAmount = (SimpleAmount)0
				}
			};
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_000c: 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_0014: Unknown result type (might be due to invalid IL or missing references)
			return CardThemeLib.instance.CreateOrGetType("Chains", (CardThemeColor)null);
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	public class BindingChainsMono : MonoBehaviour
	{
		public GameObject chainArea;

		public List<Player> chained = new List<Player>();

		private PhotonView view;

		private Player player;

		public float startTime = Time.time;

		private void Start()
		{
			//IL_0054: Unknown result type (might be due to invalid IL or missing references)
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_007f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0094: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
			player = ((Component)this).GetComponent<Player>();
			view = player.data.view;
			chainArea = Object.Instantiate<GameObject>(KeysCards.ArtAsset.LoadAsset<GameObject>("A_ChainsArea"), ((Component)player).transform);
			Transform transform = chainArea.transform;
			transform.localScale *= 3.7f;
			chainArea.transform.position = new Vector3(((Component)player).transform.position.x, ((Component)player).transform.position.y, ((Component)player).transform.position.z - 10f);
		}

		public void Update()
		{
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_0051: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0114: Unknown result type (might be due to invalid IL or missing references)
			//IL_0129: Unknown result type (might be due to invalid IL or missing references)
			//IL_013e: Unknown result type (might be due to invalid IL or missing references)
			//IL_014e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0170: Unknown result type (might be due to invalid IL or missing references)
			//IL_018d: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d3: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0096: Unknown result type (might be due to invalid IL or missing references)
			//IL_009b: Unknown result type (might be due to invalid IL or missing references)
			for (int i = 0; i < PlayerManager.instance.players.Count; i++)
			{
				Player val = PlayerManager.instance.players[i];
				if ((Object)(object)val != (Object)(object)player && !val.data.dead && Vector3.Distance(((Component)val).transform.position, ((Component)((Component)this).transform).transform.position) < 10f * ((Component)this).transform.localScale.x && val.teamID != player.teamID && PlayerManager.instance.CanSeePlayer(Vector2.op_Implicit(((Component)player).transform.position), val).canSee && !chained.Contains(val))
				{
					GameObject val2 = Object.Instantiate<GameObject>(KeysCards.ArtAsset.LoadAsset<GameObject>("A_Chains"), ((Component)player).transform);
					Transform transform = val2.transform;
					transform.localScale *= 1f;
					val2.transform.position = new Vector3(((Component)player).transform.position.x, ((Component)player).transform.position.y, ((Component)player).transform.position.z - 8f);
					((Component)val2.transform).GetComponent<LineRenderer>().SetPosition(0, ((Component)player).transform.position);
					((Component)val2.transform).GetComponent<LineRenderer>().SetPosition(1, ((Component)val).transform.position);
					val2.AddComponent<BindingChainsObjMono>();
					if (CardCheck.Amount(player, "Burning Binds") == 1)
					{
						val2.GetComponent<BindingChainsObjMono>().lineColor = new Color(0.7f, 0.3f, 0.1f, 0.01f);
					}
					val2.GetComponent<BindingChainsObjMono>().player = player;
					val2.GetComponent<BindingChainsObjMono>().target = val;
					chained.Add(val);
				}
			}
		}
	}
	public class BindingChainsObjMono : MonoBehaviour
	{
		private PhotonView view;

		public Color lineColor = new Color(8f / 51f, 7f / 51f, 14f / 51f, 0.01f);

		public Player player;

		public Player target;

		private bool activated = false;

		public float decayTime = 0f;

		public float lineStrength = 0f;

		private void Start()
		{
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			((Component)this).GetComponent<LineRenderer>().startColor = new Color(lineColor.r, lineColor.g, lineColor.b, lineColor.a / 3f);
			((Component)this).GetComponent<LineRenderer>().endColor = lineColor;
			UpdChains();
			view = player.data.view;
		}

		public void Update()
		{
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0106: Unknown result type (might be due to invalid IL or missing references)
			//IL_0149: Unknown result type (might be due to invalid IL or missing references)
			//IL_014e: 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_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ba: Unknown result type (might be due to invalid IL or missing references)
			//IL_0191: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_03f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0409: Unknown result type (might be due to invalid IL or missing references)
			//IL_0423: Unknown result type (might be due to invalid IL or missing references)
			//IL_024b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0276: Unknown result type (might be due to invalid IL or missing references)
			//IL_0286: Unknown result type (might be due to invalid IL or missing references)
			//IL_028b: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a9: Unknown result type (might be due to invalid IL or missing references)
			if (player.data.dead)
			{
				DestroyChains();
			}
			UpdChains();
			if (!activated)
			{
				if (!PlayerManager.instance.CanSeePlayer(Vector2.op_Implicit(((Component)player).transform.position), target).canSee)
				{
					lineColor -= new Color(0.12f * Time.deltaTime, 0.12f * Time.deltaTime, 0.2f * Time.deltaTime, 0.2f * Time.deltaTime + lineColor.a * Time.deltaTime);
					lineStrength -= Time.deltaTime;
					if (lineStrength <= 0f)
					{
						DestroyChains();
					}
				}
				else
				{
					lineStrength += Time.deltaTime;
					lineColor += new Color(0.12f * Time.deltaTime, 0.12f * Time.deltaTime, 0.2f * Time.deltaTime, 0.2f * Time.deltaTime + lineColor.a * Time.deltaTime);
				}
				((Component)this).GetComponent<LineRenderer>().startColor = new Color(lineColor.r, lineColor.g, lineColor.b, lineColor.a / 3f);
				((Component)this).GetComponent<LineRenderer>().endColor = lineColor;
				if (lineStrength >= 2f)
				{
					activated = true;
					if (PhotonNetwork.OfflineMode)
					{
						target.data.silenceHandler.RPCA_AddSilence(1.4f);
						target.data.stunHandler.AddStun(1.4f);
						if (CardCheck.Amount(player, "Burning Binds") == 1)
						{
							target.data.healthHandler.TakeDamageOverTime(new Vector2(1f, 1f) * (player.data.weaponHandler.gun.damage * 15f + 10f), Vector2.op_Implicit(((Component)player).transform.position), 2f, 0.5f, new Color(0.95f, 0.1f, 0.1f), ((Component)player.data.weaponHandler.gun).gameObject, player, true);
							if ((Object)(object)((Component)player).GetComponent<BurningBindsBuffMono>() != (Object)null)
							{
								((ReversibleEffect)((Component)player).GetComponent<BurningBindsBuffMono>()).Destroy();
							}
							BurningBindsBuffMono burningBindsBuffMono = ((Component)((Component)player).transform).gameObject.AddComponent<BurningBindsBuffMono>();
							Object.Destroy((Object)(object)burningBindsBuffMono, 1f);
						}
					}
					else if (((Component)player).GetComponent<PhotonView>().IsMine)
					{
						target.data.silenceHandler.RPCA_AddSilence(1.4f);
						bool flag = false;
						if (CardCheck.Amount(player, "Burning Binds") == 1)
						{
							flag = true;
						}
						NetworkingManager.RPC(typeof(BindingChainsObjMono), "SyncStun", new object[3] { target.playerID, player.playerID, flag });
					}
					((Renderer)((Component)this).GetComponent<LineRenderer>()).enabled = false;
				}
				else if (target.data.dead || Vector3.Distance(((Component)target).transform.position, ((Component)player).transform.position) > 8f * ((Component)player).transform.localScale.x)
				{
					DestroyChains();
				}
			}
			else if (lineStrength >= 7f)
			{
				DestroyChains();
			}
			else
			{
				lineStrength += Time.deltaTime;
			}
		}

		private void DestroyChains()
		{
			((Component)player).GetComponent<BindingChainsMono>().chained.Remove(target);
			Object.Destroy((Object)(object)((Component)this).gameObject);
		}

		private void UpdChains()
		{
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			((Component)((Component)this).transform).GetComponent<LineRenderer>().SetPosition(0, ((Component)player).transform.position);
			((Component)((Component)this).transform).GetComponent<LineRenderer>().SetPosition(1, ((Component)target).transform.position);
		}

		[UnboundRPC]
		public static void SyncStun(int target, int player, bool burn)
		{
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a7: 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_00b7: 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)
			Player val = PlayerManager.instance.players.Find((Player p) => p.playerID == target);
			Player val2 = PlayerManager.instance.players.Find((Player p) => p.playerID == player);
			val.data.stunHandler.AddStun(1.4f);
			if (burn)
			{
				val.data.healthHandler.TakeDamageOverTime(new Vector2(1f, 1f) * (val2.data.weaponHandler.gun.damage * 15f + 10f), Vector2.op_Implicit(((Component)val2).transform.position), 2f, 0.5f, new Color(0.95f, 0.1f, 0.1f), ((Component)val2.data.weaponHandler.gun).gameObject, val2, true);
				if ((Object)(object)((Component)val2).GetComponent<BurningBindsBuffMono>() != (Object)null)
				{
					((ReversibleEffect)((Component)val2).GetComponent<BurningBindsBuffMono>()).Destroy();
				}
				BurningBindsBuffMono burningBindsBuffMono = ((Component)((Component)val2).transform).gameObject.AddComponent<BurningBindsBuffMono>();
				Object.Destroy((Object)(object)burningBindsBuffMono, 1f);
			}
		}
	}
	internal class BottomlessPockets : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			statModifiers.movementSpeed = 0.95f;
			gun.damage = 1.5f;
			gun.ammo = 4;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
		}

		protected override string GetTitle()
		{
			return "Bottomless Pockets";
		}

		protected override string GetDescription()
		{
			return "Wow!\n Those are some big pockets!";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.BottomlessArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)0;
		}

		protected override CardInfoStat[] GetStats()
		{
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Expected O, but got Unknown
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Expected O, but got Unknown
			//IL_0061: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Unknown result type (might be due to invalid IL or missing references)
			//IL_008b: Expected O, but got Unknown
			return (CardInfoStat[])(object)new CardInfoStat[3]
			{
				new CardInfoStat
				{
					positive = true,
					stat = "Ammo",
					amount = "+4",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = true,
					stat = "Damage",
					amount = "+15%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = false,
					stat = "Move speed",
					amount = "-5%",
					simepleAmount = (SimpleAmount)0
				}
			};
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (CardThemeColorType)2;
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	internal class Bounce : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			gun.projectileSpeed = 0.8f;
			gun.damage = 1.25f;
			gun.knockback = 1.5f;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
		}

		protected override string GetTitle()
		{
			return "Boxing Glove";
		}

		protected override string GetDescription()
		{
			return "";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.BoxingGloveArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)0;
		}

		protected override CardInfoStat[] GetStats()
		{
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Expected O, but got Unknown
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Expected O, but got Unknown
			//IL_0061: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Unknown result type (might be due to invalid IL or missing references)
			//IL_008b: Expected O, but got Unknown
			return (CardInfoStat[])(object)new CardInfoStat[3]
			{
				new CardInfoStat
				{
					positive = true,
					stat = "Knockback",
					amount = "+50%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = true,
					stat = "Damage",
					amount = "+25%",
					simepleAmount = (SimpleAmount)0
				},
				new CardInfoStat
				{
					positive = false,
					stat = "Projectile speed",
					amount = "-20%",
					simepleAmount = (SimpleAmount)0
				}
			};
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (CardThemeColorType)0;
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	internal class BurningBinds : CustomCard
	{
		public static CardInfo self;

		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			cardInfo.categories = (CardCategory[])(object)new CardCategory[1] { KeysCards.BurnB };
			cardInfo.allowMultiple = false;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			if ((Object)(object)((Component)player).GetComponent<BindingChainsMono>() != (Object)null)
			{
				((Component)player).GetComponent<BindingChainsMono>().chainArea.GetComponentInChildren<SpriteRenderer>().color = new Color(0.6f, 0.35f, 0.1f, 0.15f);
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			if ((Object)(object)((Component)player).GetComponent<BindingChainsMono>() != (Object)null)
			{
				((Component)player).GetComponent<BindingChainsMono>().chainArea.GetComponentInChildren<SpriteRenderer>().color = new Color(0.8f, 0.7f, 0.8f, 0.15f);
			}
		}

		protected override string GetTitle()
		{
			return "Burning Binds";
		}

		protected override string GetDescription()
		{
			return "<b><color=#DA7F5B><size=50>Infernal + Binding Chains</size></b></color>\n<color=#bc8dc7>Binding Chains</color> now also applies a burn on successful chain, and grants you a brief Attack Speed buff";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.BurningBindsArt;
		}

		protected override Rarity GetRarity()
		{
			//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_000e: Unknown result type (might be due to invalid IL or missing references)
			return RarityUtils.GetRarity("Hidden");
		}

		protected override CardInfoStat[] GetStats()
		{
			return null;
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_000c: 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_0014: Unknown result type (might be due to invalid IL or missing references)
			return CardThemeLib.instance.CreateOrGetType("Hidden", (CardThemeColor)null);
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	public class BurningBindsBuffMono : ReversibleEffect
	{
		private ReversibleColorEffect colorEffect;

		private Color color = new Color(0.9f, 0.5f, 0.1f, 0.95f);

		public float startTime;

		public float percHealth;

		public override void OnStart()
		{
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			GunStatModifier gunStatModifier = base.gunStatModifier;
			gunStatModifier.attackSpeed_mult *= 2f / 3f;
			colorEffect = ((Component)base.player).gameObject.AddComponent<ReversibleColorEffect>();
			((ColorEffect)colorEffect).SetColor(color);
			colorEffect.SetLivesToEffect(1);
		}

		public override void OnOnDisable()
		{
			((ColorEffect)colorEffect).Destroy();
			((ReversibleEffect)this).Destroy();
		}
	}
	internal class CatTower : CustomCard
	{
		public static CardInfo self;

		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			cardInfo.categories = (CardCategory[])(object)new CardCategory[1] { KeysCards.CatT };
			cardInfo.allowMultiple = false;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
		}

		protected override string GetTitle()
		{
			return "Cat Tower";
		}

		protected override string GetDescription()
		{
			return "<b><color=#DA7F5B><size=50>Scaredy Cat + Fortress</size></b></color>\n<color=#7d9bd4>Scaredy Cat's</color> Movespeed buff is replaced with a huge Health and Lifesteal buff, and its positive keywords are always active";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.CatTowerArt;
		}

		protected override Rarity GetRarity()
		{
			//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_000e: Unknown result type (might be due to invalid IL or missing references)
			return RarityUtils.GetRarity("Hidden");
		}

		protected override CardInfoStat[] GetStats()
		{
			return null;
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_000c: 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_0014: Unknown result type (might be due to invalid IL or missing references)
			return CardThemeLib.instance.CreateOrGetType("Hidden", (CardThemeColor)null);
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	internal class CeruleanPotion : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			cardInfo.allowMultiple = false;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() != (Object)null && CardCheck.Amount(player, "Citrine Potion") == 1) || CardCheck.Amount(player, "Crimson Potion") == 1 || CardCheck.Amount(player, "Cola Potion") == 1 || CardCheck.Amount(player, "Coral Potion") == 1) && CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.Alchemy))
			{
				CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Remove(KeysCards.Alchemy);
			}
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() == (Object)null)
			{
				((Component)player).gameObject.AddComponent<PotionMono>();
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() != (Object)null && CardCheck.Amount(player, "Crimson Potion") == 0 && CardCheck.Amount(player, "Citrine Potion") == 0 && CardCheck.Amount(player, "Cola Potion") == 0 && CardCheck.Amount(player, "Coral Potion") == 0)
			{
				if (!CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.Alchemy))
				{
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(KeysCards.Alchemy);
				}
				Object.Destroy((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>());
			}
		}

		protected override string GetTitle()
		{
			return "Cerulean Potion";
		}

		protected override string GetDescription()
		{
			return "<b><color=#73b366>Potion</b></color>\nBlocking grants you increased <color=#78c2cf>Health</color> and <color=#78c2cf>Damage</color> <b><color=#73b366>3</color></b> seconds.\n<size=52><b><color=#787878>6s cooldown";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.CeruleanPotionArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)1;
		}

		protected override CardInfoStat[] GetStats()
		{
			return null;
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (CardThemeColorType)2;
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	public class CeruleanPotionBuffMono : ReversibleEffect
	{
		public float poduration = 3f;

		public float starttime = Time.time;

		public override void OnStart()
		{
			GunStatModifier gunStatModifier = base.gunStatModifier;
			gunStatModifier.damage_mult *= 1.55f;
			CharacterDataModifier characterDataModifier = base.characterDataModifier;
			characterDataModifier.maxHealth_mult *= 1.55f;
		}

		public override void OnUpdate()
		{
			if (Time.time > starttime + poduration)
			{
				((ReversibleEffect)this).Destroy();
			}
		}

		public override void OnOnDisable()
		{
			((ReversibleEffect)this).Destroy();
		}
	}
	internal class CitrinePotion : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			cardInfo.allowMultiple = false;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() != (Object)null && CardCheck.Amount(player, "Crimson Potion") == 1) || CardCheck.Amount(player, "Cerulean Potion") == 1 || CardCheck.Amount(player, "Cola Potion") == 1 || CardCheck.Amount(player, "Coral Potion") == 1) && CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.Alchemy))
			{
				CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Remove(KeysCards.Alchemy);
			}
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() == (Object)null)
			{
				((Component)player).gameObject.AddComponent<PotionMono>();
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() != (Object)null && CardCheck.Amount(player, "Crimson Potion") == 0 && CardCheck.Amount(player, "Cerulean Potion") == 0 && CardCheck.Amount(player, "Cola Potion") == 0 && CardCheck.Amount(player, "Coral Potion") == 0)
			{
				if (!CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.Alchemy))
				{
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(KeysCards.Alchemy);
				}
				Object.Destroy((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>());
			}
		}

		protected override string GetTitle()
		{
			return "Citrine Potion";
		}

		protected override string GetDescription()
		{
			return "<b><color=#73b366>Potion</b></color>\nBlocking grants you increased <color=#e3c97d>Attack Speed</color> and <color=#e3c97d>Reload Speed</color> for <b><color=#73b366>3</color></b> seconds.\n<size=52><b><color=#787878>6s cooldown";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.CitrinePotionArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)1;
		}

		protected override CardInfoStat[] GetStats()
		{
			return null;
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (CardThemeColorType)1;
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	public class CitrinePotionBuffMono : ReversibleEffect
	{
		public float poduration = 3f;

		public float starttime = Time.time;

		public override void OnStart()
		{
			GunAmmoStatModifier gunAmmoStatModifier = base.gunAmmoStatModifier;
			gunAmmoStatModifier.reloadTimeMultiplier_mult *= 0.5f;
			GunStatModifier gunStatModifier = base.gunStatModifier;
			gunStatModifier.attackSpeed_mult *= 0.625f;
		}

		public override void OnUpdate()
		{
			if (Time.time > starttime + poduration)
			{
				((ReversibleEffect)this).Destroy();
			}
		}

		public override void OnOnDisable()
		{
			((ReversibleEffect)this).Destroy();
		}
	}
	internal class ColaPotion : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			cardInfo.allowMultiple = false;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() != (Object)null && CardCheck.Amount(player, "Citrine Potion") == 1) || CardCheck.Amount(player, "Crimson Potion") == 1 || CardCheck.Amount(player, "Cerulean Potion") == 1 || CardCheck.Amount(player, "Coral Potion") == 1) && CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.Alchemy))
			{
				CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Remove(KeysCards.Alchemy);
			}
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() == (Object)null)
			{
				((Component)player).gameObject.AddComponent<PotionMono>();
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>() != (Object)null && CardCheck.Amount(player, "Crimson Potion") == 0 && CardCheck.Amount(player, "Citrine Potion") == 0 && CardCheck.Amount(player, "Cerulean Potion") == 0 && CardCheck.Amount(player, "Coral Potion") == 0)
			{
				if (!CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Contains(KeysCards.Alchemy))
				{
					CharacterStatModifiersExtension.GetAdditionalData(player.data.stats).blacklistedCategories.Add(KeysCards.Alchemy);
				}
				Object.Destroy((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<PotionMono>());
			}
		}

		protected override string GetTitle()
		{
			return "Cola Potion";
		}

		protected override string GetDescription()
		{
			return "<b><color=#73b366>Potion</b></color>\nBlocking grants you <color=#917d70>Burn on Bullet Hit</color> and increased <color=#917d70>Mobility</color> for <b><color=#73b366>3</color></b> seconds.\n<size=52><b><color=#787878>6s cooldown";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.ColaPotionArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)1;
		}

		protected override CardInfoStat[] GetStats()
		{
			return null;
		}

		protected override CardThemeColorType GetTheme()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (CardThemeColorType)3;
		}

		public override string GetModName()
		{
			return "KEYS";
		}
	}
	public class ColaPotionBuffMono : ReversibleEffect
	{
		public float poduration = 3f;

		public float starttime = Time.time;

		public override void OnStart()
		{
			Gun gun = base.gun;
			gun.ShootPojectileAction = (Action<GameObject>)Delegate.Combine(gun.ShootPojectileAction, new Action<GameObject>(OnShoot));
			base.characterStatModifiersModifier.movementSpeed_mult = 1.3f;
			CharacterStatModifiersModifier characterStatModifiersModifier = base.characterStatModifiersModifier;
			characterStatModifiersModifier.jump_mult *= 1.5f;
		}

		public override void OnUpdate()
		{
			if (Time.time > starttime + poduration)
			{
				((ReversibleEffect)this).Destroy();
			}
		}

		public void OnShoot(GameObject projectile)
		{
			projectile.AddComponent<ColaPotionHitPoison>();
		}

		public override void OnOnDisable()
		{
			Gun gun = base.gun;
			gun.ShootPojectileAction = (Action<GameObject>)Delegate.Remove(gun.ShootPojectileAction, new Action<GameObject>(OnShoot));
			((ReversibleEffect)this).Destroy();
		}
	}
	internal class CompassCard : CustomCard
	{
		public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
		{
			statModifiers.movementSpeed = 1.05f;
			statModifiers.attackSpeedMultiplier = 0.952381f;
		}

		public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
			if ((Object)(object)((Component)((Component)player).transform).gameObject.GetComponent<MapCompassMono>() == (Object)null)
			{
				((Component)player).gameObject.AddComponent<MapCompassMono>();
			}
		}

		public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats)
		{
		}

		protected override string GetTitle()
		{
			return "Compass";
		}

		protected override string GetDescription()
		{
			return "Gain a random <b><color=#ede624>Treasure</b></color> if you find a matching Treasure Map card";
		}

		protected override GameObject GetCardArt()
		{
			return KeysCards.CompassArt;
		}

		protected override Rarity GetRarity()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			return (Rarity)0;
		}

		protected override CardInfoStat[] GetStats()
		{
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Expected O, but got Unknown
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Expected O, but got Unknown
			return (CardInfoStat[])(object)new CardInfoStat[2]
			{