using System;
using System.Collections;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using JacksCards.Cards;
using Microsoft.CodeAnalysis;
using ModsPlus;
using UnboundLib.Cards;
using UnboundLib.GameModes;
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 = ".NET Standard 2.1")]
[assembly: AssemblyCompany("JacksCards")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("JacksCards")]
[assembly: AssemblyTitle("JacksCards")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
}
namespace JacksCards
{
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("com.jacks.cards", "JacksCards", "0.69")]
[BepInProcess("Rounds.exe")]
public class JacksCards : BaseUnityPlugin
{
public const string Version = "0.69";
public const string ModInitials = "Jacks";
public static JacksCards instance { get; private set; }
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Expected O, but got Unknown
Harmony val = new Harmony("com.jacks.cards");
val.PatchAll();
}
private void Start()
{
instance = this;
CustomCard.BuildCard<Dodge>();
CustomCard.BuildCard<LastStand>();
CustomCard.BuildCard<Equalizer>();
CustomCard.BuildCard<Absorb>();
CustomCard.BuildCard<Snipin>();
CustomCard.BuildCard<Warlord>();
CustomCard.BuildCard<BigSpray>();
CustomCard.BuildCard<MagneticRounds>();
CustomCard.BuildCard<LittlePlanet>();
CustomCard.BuildCard<Parry>();
CustomCard.BuildCard<IBlocked>();
CustomCard.BuildCard<AmericanHealing>();
CustomCard.BuildCard<AcceleratingWeaponry>();
}
}
}
namespace JacksCards.Cards
{
internal class Absorb : CustomEffectCard<AbsorbEffect>
{
public override CardDetails<AbsorbEffect> Details
{
get
{
CardDetails<AbsorbEffect> val = new CardDetails<AbsorbEffect>();
val.Title = "Absorb";
val.Description = "<color=\"green\">80%</color> of damage you take is absorbed and fired in your next shot";
val.ModName = "Jacks";
val.Art = null;
val.Rarity = (Rarity)0;
val.Theme = (CardThemeColorType)2;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[0];
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
}
}
public class AbsorbEffect : CardEffect
{
private float damageAbsorbed;
private float percentAbsorbed = 0.8f;
private float baseDamage;
private float hp;
private bool active;
public override void OnTakeDamage(Vector2 damage, bool selfDamage)
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
((CardEffect)this).OnTakeDamage(damage, selfDamage);
if (active && !selfDamage)
{
damageAbsorbed = hp - ((CardEffect)this).player.data.health;
hp = ((CardEffect)this).player.data.health;
((CardEffect)this).gun.damage = ((CardEffect)this).gun.damage + damageAbsorbed * percentAbsorbed / 55f;
}
}
public override void OnShoot(GameObject projectile)
{
((CardEffect)this).OnShoot(projectile);
damageAbsorbed = 0f;
((CardEffect)this).gun.damage = baseDamage;
}
public override IEnumerator OnPointEnd(IGameModeHandler gameModeHandler)
{
damageAbsorbed = 0f;
((CardEffect)this).gun.damage = baseDamage;
active = false;
return ((CardEffect)this).OnPointEnd(gameModeHandler);
}
public override void OnUpgradeCard()
{
((CardEffect)this).OnUpgradeCard();
percentAbsorbed += 0.5f;
}
public override IEnumerator OnPointStart(IGameModeHandler gameModeHandler)
{
damageAbsorbed = 0f;
active = true;
hp = ((CardEffect)this).player.data.health;
baseDamage = ((CardEffect)this).gun.damage;
return ((CardEffect)this).OnPointStart(gameModeHandler);
}
}
internal class AcceleratingWeaponry : CustomEffectCard<AcceleratingWeaponryEffect>
{
public override CardDetails<AcceleratingWeaponryEffect> Details
{
get
{
//IL_004c: 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_0058: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Expected O, but got Unknown
CardDetails<AcceleratingWeaponryEffect> val = new CardDetails<AcceleratingWeaponryEffect>();
val.Title = "Accelerating Weaponry";
val.Description = "Everytime you fire your weapon gain a small amount of firerate \n Trust me its stronger than you think.";
val.ModName = "Jacks";
val.Art = null;
val.Rarity = (Rarity)1;
val.Theme = (CardThemeColorType)4;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[1]
{
new CardInfoStat
{
positive = true,
stat = "higher fire rate per shot",
amount = "0.5%",
simepleAmount = (SimpleAmount)0
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
}
}
internal class AcceleratingWeaponryEffect : CardEffect
{
public float baseAtkSpeed;
public override void OnShoot(GameObject projectile)
{
((CardEffect)this).OnShoot(projectile);
Gun gun = ((CardEffect)this).gun;
gun.attackSpeed -= 0.005f;
}
public override IEnumerator OnPointStart(IGameModeHandler gameModeHandler)
{
baseAtkSpeed = ((CardEffect)this).gun.attackSpeed;
return ((CardEffect)this).OnPointStart(gameModeHandler);
}
public override IEnumerator OnPointEnd(IGameModeHandler gameModeHandler)
{
((CardEffect)this).gun.attackSpeed = baseAtkSpeed;
return ((CardEffect)this).OnPointEnd(gameModeHandler);
}
}
internal class AmericanHealing : CustomEffectCard<AmericanHealingEffect>
{
public override CardDetails<AmericanHealingEffect> Details
{
get
{
//IL_004c: 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_0058: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Expected O, but got Unknown
CardDetails<AmericanHealingEffect> val = new CardDetails<AmericanHealingEffect>();
val.Title = "Nanomachines";
val.Description = "Upon taking damage <color=\"red\">lose 50%</color> of your own damage. Then <color=\"green\">regain</color> it over the next 3 seconds.\n<color=\"green\">Heal 1 hp</color> per 1 damage regained. This effect can only occur every 3 seconds";
val.ModName = "Jacks";
val.Art = null;
val.Rarity = (Rarity)1;
val.Theme = (CardThemeColorType)0;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[1]
{
new CardInfoStat
{
positive = true,
stat = "<color=\"green\">Guarentee you'll not go hungry</color>",
amount = "",
simepleAmount = (SimpleAmount)0
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
gun.damage = 0.8f;
}
}
internal class AmericanHealingEffect : CardEffect
{
public float baseDamage;
public bool damageHalfed;
public float halfedDamage;
public float damageBeforeHalfed;
public float damageRegained;
public float time = 3f;
public override void OnTakeDamage(Vector2 damage, bool selfDamage)
{
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
if (!damageHalfed)
{
damageBeforeHalfed = ((CardEffect)this).gun.damage;
Gun gun = ((CardEffect)this).gun;
gun.damage *= 0.5f;
halfedDamage = ((CardEffect)this).gun.damage;
damageHalfed = true;
damageRegained = 0f;
}
((CardEffect)this).OnTakeDamage(damage, selfDamage);
}
public void FixedUpdate()
{
if (damageHalfed)
{
Gun gun = ((CardEffect)this).gun;
gun.damage += halfedDamage * 0.33f * Time.deltaTime;
damageRegained += halfedDamage * 0.33f * Time.deltaTime;
((CardEffect)this).player.data.healthHandler.Heal(halfedDamage * 0.33f * Time.deltaTime * 55f * 1f);
if (damageRegained >= damageBeforeHalfed - halfedDamage)
{
damageHalfed = false;
}
}
}
public override void OnRevive()
{
((CardEffect)this).OnRevive();
damageHalfed = false;
Gun gun = ((CardEffect)this).gun;
gun.damage += halfedDamage;
}
public override IEnumerator OnPointStart(IGameModeHandler gameModeHandler)
{
baseDamage = ((CardEffect)this).gun.damage;
return ((CardEffect)this).OnPointStart(gameModeHandler);
}
public override IEnumerator OnPointEnd(IGameModeHandler gameModeHandler)
{
halfedDamage = 0f;
damageHalfed = false;
((CardEffect)this).gun.damage = baseDamage;
return ((CardEffect)this).OnPointEnd(gameModeHandler);
}
}
internal class BigSpray : CustomCard
{
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
gun.damage = 0.2f;
gun.spread = 0.4f;
gun.ammo = 15;
gun.numberOfProjectiles = base.gun.ammo;
gun.dontAllowAutoFire = 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 "BRRRRRRRRRRRRR";
}
protected override string GetDescription()
{
return "Fire all the bullets!";
}
protected override GameObject GetCardArt()
{
return null;
}
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 = "Bullets",
amount = "15",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = false,
stat = "Spray",
amount = "A bunch more",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = false,
stat = "Damage",
amount = "Way less",
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 "Jacks";
}
}
internal class Dodge : CustomCard
{
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
block.forceToAdd = -10f;
statModifiers.health = 1.2f;
block.cdAdd = 0.25f;
}
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 "Dodge";
}
protected override string GetDescription()
{
return "Dodge backwards on block";
}
protected override GameObject GetCardArt()
{
return null;
}
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 = "Health",
amount = "+20%",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = false,
stat = "Block Cooldown",
amount = "+0.25s",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = false,
stat = "Balls",
amount = "None",
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)7;
}
public override string GetModName()
{
return "Jacks";
}
}
internal class Equalizer : CustomCard
{
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
gun.percentageDamage = 0.12f;
}
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 "Equalizer";
}
protected override string GetDescription()
{
return "Deal damage that scales with enemy max health";
}
protected override GameObject GetCardArt()
{
return null;
}
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
return (CardInfoStat[])(object)new CardInfoStat[1]
{
new CardInfoStat
{
positive = true,
stat = "Max Health Damage",
amount = "+12%",
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)7;
}
public override string GetModName()
{
return "Jacks";
}
}
internal class IBlocked : CustomEffectCard<IBlockedEffect>
{
public override CardDetails<IBlockedEffect> Details
{
get
{
CardDetails<IBlockedEffect> val = new CardDetails<IBlockedEffect>();
val.Title = "Your Honor, I Blocked!";
val.Description = "Delays death by 0.5 seconds.\nif you are blocking during this time revive with 20% of your max hp";
val.ModName = "JCEX";
val.Art = null;
val.Rarity = (Rarity)2;
val.Theme = (CardThemeColorType)0;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[0];
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
cardInfo.allowMultiple = false;
}
}
internal class IBlockedEffect : CardEffect
{
public override void OnTakeDamage(Vector2 damage, bool selfDamage)
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
((CardEffect)this).OnTakeDamage(damage, selfDamage);
if (!selfDamage)
{
((CardEffect)this).player.data.silenceHandler.StopSilence();
}
}
}
internal class LastStand : CustomEffectCard<LastStandEffect>
{
public override CardDetails<LastStandEffect> Details
{
get
{
CardDetails<LastStandEffect> val = new CardDetails<LastStandEffect>();
val.Title = "Last Stand";
val.Description = "The lower your HP the more damage you deal, up to, <color=\"green\">100%</color> more damage";
val.ModName = "Jacks";
val.Art = null;
val.Rarity = (Rarity)1;
val.Theme = (CardThemeColorType)0;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[0];
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
}
}
public class LastStandEffect : CardEffect
{
private float damageModifier;
private bool active = false;
private float baseDamage;
private int upgradeFactor = 1;
public override IEnumerator OnPointStart(IGameModeHandler gameModeHandler)
{
baseDamage = ((CardEffect)this).gun.damage;
active = true;
return ((CardEffect)this).OnPointStart(gameModeHandler);
}
public override IEnumerator OnPointEnd(IGameModeHandler gameModeHandler)
{
((CardEffect)this).gun.damage = baseDamage;
active = false;
return ((CardEffect)this).OnPointEnd(gameModeHandler);
}
public override void OnUpgradeCard()
{
((CardEffect)this).OnUpgradeCard();
upgradeFactor++;
}
public void FixedUpdate()
{
if (active)
{
damageModifier = 1f + (1f - ((CardEffect)this).player.data.health / ((CardEffect)this).player.data.maxHealth) * (float)upgradeFactor;
((CardEffect)this).gun.damage = baseDamage * damageModifier;
}
}
}
internal class LittlePlanet : CustomEffectCard<LittlePlanetEffect>
{
public override CardDetails<LittlePlanetEffect> Details
{
get
{
//IL_004c: 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_0058: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Expected O, but got Unknown
CardDetails<LittlePlanetEffect> val = new CardDetails<LittlePlanetEffect>();
val.Title = "Telekenesis";
val.Description = "Create a shield out of objects around you";
val.ModName = "Jacks";
val.Art = null;
val.Rarity = (Rarity)1;
val.Theme = (CardThemeColorType)3;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[1]
{
new CardInfoStat
{
positive = true,
stat = "Telekinetic Radius",
amount = "+5",
simepleAmount = (SimpleAmount)0
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
}
}
internal class LittlePlanetEffect : CardEffect
{
private float magnetizeFactor = 10f;
private float radius = 10f;
private float cutOff = 3.33f;
public void FixedUpdate()
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Unknown result type (might be due to invalid IL or missing references)
//IL_0049: Unknown result type (might be due to invalid IL or missing references)
//IL_004e: Unknown result type (might be due to invalid IL or missing references)
//IL_0053: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: 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_00d5: Unknown result type (might be due to invalid IL or missing references)
//IL_00da: Unknown result type (might be due to invalid IL or missing references)
//IL_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_00e8: Unknown result type (might be due to invalid IL or missing references)
//IL_00ec: Unknown result type (might be due to invalid IL or missing references)
//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
//IL_00fe: 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_008b: 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_0094: 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_009e: Unknown result type (might be due to invalid IL or missing references)
//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
//IL_00ad: Unknown result type (might be due to invalid IL or missing references)
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00be: Unknown result type (might be due to invalid IL or missing references)
//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
Collider2D[] array = Physics2D.OverlapCircleAll(Vector2.op_Implicit(((Component)this).transform.position), radius);
Collider2D[] array2 = array;
Rigidbody2D val2 = default(Rigidbody2D);
foreach (Collider2D val in array2)
{
if (ExtensionMethods.TryGetComponent<Rigidbody2D>(((Component)val).gameObject, ref val2))
{
Vector2 val3 = Vector2.op_Implicit(((Component)this).transform.position);
float num = Vector2.Distance(val3, val2.position);
float num2 = (radius - num) / radius;
Vector2 val4;
if (num < cutOff)
{
Rigidbody2D obj = val2;
Vector2 velocity = obj.velocity;
val4 = val3 - val2.position;
obj.velocity = velocity - ((Vector2)(ref val4)).normalized * magnetizeFactor * num2 * 2f;
}
else
{
Rigidbody2D obj2 = val2;
Vector2 velocity2 = obj2.velocity;
val4 = val3 - val2.position;
obj2.velocity = velocity2 + ((Vector2)(ref val4)).normalized * magnetizeFactor * num2;
}
}
}
}
public override void OnUpgradeCard()
{
((CardEffect)this).OnUpgradeCard();
magnetizeFactor += 5f;
radius += 5f;
cutOff += 1.66f;
}
}
internal class MagneticRounds : CustomEffectCard<MagneticRoundsEffect>
{
public override CardDetails<MagneticRoundsEffect> Details
{
get
{
//IL_004c: 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_0058: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Expected O, but got Unknown
CardDetails<MagneticRoundsEffect> val = new CardDetails<MagneticRoundsEffect>();
val.Title = "Magnetic Rounds";
val.Description = "Bullets repulse things around it";
val.ModName = "Jacks";
val.Art = null;
val.Rarity = (Rarity)1;
val.Theme = (CardThemeColorType)3;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[1]
{
new CardInfoStat
{
positive = true,
stat = "Bullet Magnetic Radius",
amount = "+5",
simepleAmount = (SimpleAmount)0
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
}
}
internal class MagneticRoundsEffect : CardEffect
{
private float magnetizeFactor = 5f;
private float radius = 5f;
public void FixedUpdate()
{
//IL_0027: Unknown result type (might be due to invalid IL or missing references)
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0031: Unknown result type (might be due to invalid IL or missing references)
//IL_0033: Unknown result type (might be due to invalid IL or missing references)
//IL_006c: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: Unknown result type (might be due to invalid IL or missing references)
//IL_0091: Unknown result type (might be due to invalid IL or missing references)
//IL_0096: Unknown result type (might be due to invalid IL or missing references)
//IL_009a: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: 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_00a8: 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)
//IL_00ba: Unknown result type (might be due to invalid IL or missing references)
//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
SpawnedAttack[] allSpawnedAttacks = ((Component)((CardEffect)this).player).GetComponent<PlayerAPI>().GetAllSpawnedAttacks();
SpawnedAttack[] array = allSpawnedAttacks;
Rigidbody2D val4 = default(Rigidbody2D);
foreach (SpawnedAttack val in array)
{
Vector2 val2 = Vector2.op_Implicit(((Component)val).transform.position);
Collider2D[] array2 = Physics2D.OverlapCircleAll(val2, radius);
Collider2D[] array3 = array2;
foreach (Collider2D val3 in array3)
{
if (ExtensionMethods.TryGetComponent<Rigidbody2D>(((Component)val3).gameObject, ref val4))
{
float num = Vector2.Distance(val2, val4.position);
float num2 = (radius - num) / radius;
Rigidbody2D obj = val4;
Vector2 velocity = obj.velocity;
Vector2 val5 = val2 - val4.position;
obj.velocity = velocity - ((Vector2)(ref val5)).normalized * magnetizeFactor * num2;
}
}
}
}
public override void OnUpgradeCard()
{
((CardEffect)this).OnUpgradeCard();
magnetizeFactor += 5f;
radius += 1f;
}
}
internal class Parry : CustomEffectCard<ParryEffect>
{
public override CardDetails<ParryEffect> Details
{
get
{
CardDetails<ParryEffect> val = new CardDetails<ParryEffect>();
val.Title = "Parry";
val.Description = "After blocking a bullet, stun whoever fired it";
val.ModName = "Jacks";
val.Art = null;
val.Rarity = (Rarity)1;
val.Theme = (CardThemeColorType)2;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[0];
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
}
}
internal class ParryEffect : CardEffect
{
private Player projectileOwner;
private float stunLength = 1.5f;
public override void OnBlockProjectile(GameObject projectile, Vector3 forward, Vector3 hitPosition)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0004: Unknown result type (might be due to invalid IL or missing references)
((CardEffect)this).OnBlockProjectile(projectile, forward, hitPosition);
projectileOwner = projectile.GetComponent<SpawnedAttack>().spawner;
projectileOwner.data.stunHandler.AddStun(stunLength);
projectileOwner.data.silenceHandler.RPCA_AddSilence(stunLength);
}
public override void OnUpgradeCard()
{
stunLength += 0.5f;
((CardEffect)this).OnUpgradeCard();
}
}
internal class Snipin : CustomEffectCard<SnipinEffect>
{
public override CardDetails<SnipinEffect> Details
{
get
{
//IL_004c: 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_0058: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Expected O, but got Unknown
//IL_0078: Unknown result type (might be due to invalid IL or missing references)
//IL_007d: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Unknown result type (might be due to invalid IL or missing references)
//IL_008f: 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_009c: Unknown result type (might be due to invalid IL or missing references)
//IL_00a2: Expected O, but got Unknown
//IL_00a4: 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_00b0: Unknown result type (might be due to invalid IL or missing references)
//IL_00bb: Unknown result type (might be due to invalid IL or missing references)
//IL_00c6: Unknown result type (might be due to invalid IL or missing references)
//IL_00c8: Unknown result type (might be due to invalid IL or missing references)
//IL_00ce: Expected O, but got Unknown
CardDetails<SnipinEffect> val = new CardDetails<SnipinEffect>();
val.Title = "Snipins a good job mate";
val.Description = "<color=\"green\">Gain</color> bonus damage whilst not moving.<color=\"red\">Lose</color> it when you move";
val.ModName = "Jacks";
val.Art = null;
val.Rarity = (Rarity)1;
val.Theme = (CardThemeColorType)5;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "<color=\"green\">Challengin work</color>",
amount = "",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = true,
stat = "<color=\"green\">Outdoors</color>",
amount = "",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = true,
stat = "<color=\"green\">Guarentee you'll not go hungry</color>",
amount = "",
simepleAmount = (SimpleAmount)0
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
}
}
internal class SnipinEffect : CardEffect
{
public float damageMultiplier;
public float baseDamage;
public float gainRate = 0.08f;
public float maxGain = 0.5f;
public bool active;
public bool set = false;
private CustomHealthBar statusBar = new GameObject("Status Bar", new Type[1] { typeof(CustomHealthBar) }).GetComponent<CustomHealthBar>();
public void FixedUpdate()
{
//IL_0023: Unknown result type (might be due to invalid IL or missing references)
//IL_0028: Unknown result type (might be due to invalid IL or missing references)
if (!active)
{
return;
}
if (((CardEffect)this).player.data.input.direction == Vector3.zero)
{
if (damageMultiplier < maxGain)
{
damageMultiplier += gainRate * Time.deltaTime;
}
else
{
damageMultiplier = maxGain;
}
}
else if (damageMultiplier >= 0f)
{
damageMultiplier -= gainRate * 2f * Time.deltaTime;
if (damageMultiplier < 0f)
{
damageMultiplier = 0f;
}
}
((CardEffect)this).gun.damage = baseDamage + damageMultiplier;
statusBar.CurrentHealth = damageMultiplier;
}
public override void OnUpgradeCard()
{
((CardEffect)this).OnUpgradeCard();
gainRate += 0.1f;
maxGain += 0.5f;
}
public override IEnumerator OnPickPhaseEnd(IGameModeHandler gameModeHandler)
{
//IL_0032: Unknown result type (might be due to invalid IL or missing references)
if (!set)
{
ExtensionMethods.AddStatusIndicator(((CardEffect)this).player, ((Component)statusBar).gameObject, 0f, true);
statusBar.SetColor(Color.yellow);
}
return ((CardEffect)this).OnPickPhaseEnd(gameModeHandler);
}
public override IEnumerator OnPointStart(IGameModeHandler gameModeHandler)
{
damageMultiplier = 0f;
statusBar.MaxHealth = maxGain;
baseDamage = ((CardEffect)this).gun.damage;
active = true;
return ((CardEffect)this).OnPointStart(gameModeHandler);
}
public override IEnumerator OnPointEnd(IGameModeHandler gameModeHandler)
{
((CardEffect)this).gun.damage = baseDamage;
active = false;
return ((CardEffect)this).OnPointEnd(gameModeHandler);
}
}
internal class MyCardName : CustomCard
{
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
}
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 "CardName";
}
protected override string GetDescription()
{
return "CardDescription";
}
protected override GameObject GetCardArt()
{
return null;
}
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
return (CardInfoStat[])(object)new CardInfoStat[1]
{
new CardInfoStat
{
positive = true,
stat = "Effect",
amount = "No",
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 "Jacks";
}
}
internal class Warlord : CustomEffectCard<WarlordEffect>
{
public override CardDetails<WarlordEffect> Details
{
get
{
//IL_004c: 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_0058: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Unknown result type (might be due to invalid IL or missing references)
//IL_0070: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Expected O, but got Unknown
//IL_0078: Unknown result type (might be due to invalid IL or missing references)
//IL_007d: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Unknown result type (might be due to invalid IL or missing references)
//IL_008f: 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_009c: Unknown result type (might be due to invalid IL or missing references)
//IL_00a2: Expected O, but got Unknown
CardDetails<WarlordEffect> val = new CardDetails<WarlordEffect>();
val.Title = "Warlord";
val.Description = "Everytime you kill someone gain";
val.ModName = "Jacks";
val.Art = null;
val.Rarity = (Rarity)1;
val.Theme = (CardThemeColorType)4;
val.Stats = (CardInfoStat[])(object)new CardInfoStat[2]
{
new CardInfoStat
{
positive = true,
stat = "damage",
amount = "5%",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = true,
stat = "health",
amount = "5%",
simepleAmount = (SimpleAmount)0
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
}
}
internal class WarlordEffect : CardEffect
{
private CharacterData playerHit = null;
private float damageModifier = 0f;
private float healthModifier = 1f;
public int stacks = 0;
public override void OnBulletHit(GameObject projectile, HitInfo hit)
{
CharacterData val = default(CharacterData);
if (ExtensionMethods.TryGetComponent<CharacterData>(((Component)hit.transform).gameObject, ref val) && val.health <= 0f)
{
damageModifier += 0.05f;
healthModifier += 0.05f;
}
}
public override IEnumerator OnPointEnd(IGameModeHandler gameModeHandler)
{
Gun gun = ((CardEffect)this).gun;
gun.damage += damageModifier;
((CardEffect)this).player.data.maxHealth = ((CardEffect)this).player.data.maxHealth * healthModifier;
return ((CardEffect)this).OnPointEnd(gameModeHandler);
}
public override IEnumerator OnPointStart(IGameModeHandler gameModeHandler)
{
damageModifier = 0f;
healthModifier = 1f;
return ((CardEffect)this).OnPointStart(gameModeHandler);
}
public int GetStacks()
{
return stacks;
}
}
}