Decompiled source of WeaponClasses v0.1.0
WeaponClasses.dll
Decompiled 5 hours ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using ClassesManagerReborn; using ClassesManagerReborn.Util; using HarmonyLib; using Microsoft.CodeAnalysis; using ModsPlus; using RarityLib.Utils; using UnboundLib; using UnboundLib.Cards; using UnityEngine; using WeaponClasses.Cards; [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("WeaponClasses")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+43f140718b89acb12b1e65a8cacc6782f02d3a20")] [assembly: AssemblyProduct("WeaponClasses")] [assembly: AssemblyTitle("WeaponClasses")] [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 WeaponClasses { [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("morino.rounds.WeaponClasses", "WeaponClasses", "0.1.0")] [BepInProcess("Rounds.exe")] public class WeaponClasses : BaseUnityPlugin { private const string ModId = "morino.rounds.WeaponClasses"; private const string ModName = "WeaponClasses"; public const string Version = "0.1.0"; public const string ModInitials = "MWC"; public const string TestModName = "Test Cards"; public const string TestModInitials = "MTC"; public const string GlobalModName = "Global Cards"; public const string GlobalModInitials = "MGC"; public static WeaponClasses instance; public const bool testCards = true; private void Start() { //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("morino.rounds.WeaponClasses"); val.PatchAll(); instance = this; bool flag = true; CustomCard.BuildCard<AddAttackSpeed>(); CustomCard.BuildCard<RemoveAttackSpeed>(); CustomCard.BuildCard<AddDrag>(); CustomCard.BuildCard<RemoveDrag>(); CustomCard.BuildCard<AddDestroyBulletAfter>(); CustomCard.BuildCard<RemoveDestroyBulletAfter>(); CustomCard.BuildCard<AddProjectileSpeed>(); CustomCard.BuildCard<RemoveProjectileSpeed>(); CustomCard.BuildCard<AddProjectielSimulatonSpeed>(); CustomCard.BuildCard<RemoveProjectielSimulatonSpeed>(); CustomCard.BuildCard<AddRecoil>(); CustomCard.BuildCard<RemoveRecoil>(); CustomCard.BuildCard<CommonMoreDamage>(); CustomCard.BuildCard<UncommonMoreDamage>(); CustomCard.BuildCard<RareMoreDamage>(); CustomCard.BuildCard<CommonReloadSpeed>(); CustomCard.BuildCard<UncommonReloadSpeed>(); CustomCard.BuildCard<RareReloadSpeed>(); CustomCard.BuildCard<PistolCard0>((Action<CardInfo>)delegate(CardInfo card) { PistolCard0.card = card; }); CustomCard.BuildCard<PistolCard0Upgrade0>((Action<CardInfo>)delegate(CardInfo card) { PistolCard0Upgrade0.card = card; }); CustomCard.BuildCard<PistolCard0Upgrade1>((Action<CardInfo>)delegate(CardInfo card) { PistolCard0Upgrade1.card = card; }); CustomCard.BuildCard<PistolCard0Upgrade2>((Action<CardInfo>)delegate(CardInfo card) { PistolCard0Upgrade2.card = card; }); CustomCard.BuildCard<PistolCard1>((Action<CardInfo>)delegate(CardInfo card) { PistolCard1.card = card; }); CustomCard.BuildCard<ShotgunCard0>((Action<CardInfo>)delegate(CardInfo card) { ShotgunCard0.card = card; }); CustomCard.BuildCard<ShotgunCard0Upgrade0>((Action<CardInfo>)delegate(CardInfo card) { ShotgunCard0Upgrade0.card = card; }); CustomCard.BuildCard<ShotgunCard0Upgrade1>((Action<CardInfo>)delegate(CardInfo card) { ShotgunCard0Upgrade1.card = card; }); CustomCard.BuildCard<ShotgunCard0Upgrade2>((Action<CardInfo>)delegate(CardInfo card) { ShotgunCard0Upgrade2.card = card; }); CustomCard.BuildCard<ShotgunCard1>((Action<CardInfo>)delegate(CardInfo card) { ShotgunCard1.card = card; }); CustomCard.BuildCard<SMGCard>((Action<CardInfo>)delegate(CardInfo card) { SMGCard.card = card; }); CustomCard.BuildCard<SMGMoreAmmo>((Action<CardInfo>)delegate(CardInfo card) { SMGMoreAmmo.card = card; }); } } } namespace WeaponClasses.Cards { public class CommonMoreDamage : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Damage+"; val.Description = "Get 10% bonus damage"; val.ModName = "MGC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)1; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Damage", amount = "+10%", simepleAmount = (SimpleAmount)0 } }; return val; } } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage *= 1.1f; } } public class CommonReloadSpeed : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "ReloadSpeed+"; val.Description = "Reload 10% Faster"; val.ModName = "MGC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)1; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Reload", amount = "+10%", simepleAmount = (SimpleAmount)0 } }; return val; } } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.reloadTime *= 0.9f; } } internal class EvasiveManeuvers : 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; Debug.Log((object)("[MWC][Card] " + ((CustomCard)this).GetTitle() + " has been setup.")); } public override void OnAddCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { Debug.Log((object)string.Format("[{0}][Card] {1} has been added to player {2}.", "MWC", ((CustomCard)this).GetTitle(), player.playerID)); } public override void OnRemoveCard(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { Debug.Log((object)string.Format("[{0}][Card] {1} has been removed from player {2}.", "MWC", ((CustomCard)this).GetTitle(), player.playerID)); } protected override string GetTitle() { return "Evasive Maneuvers"; } protected override string GetDescription() { return "Dodge backward 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 return (CardInfoStat[])(object)new CardInfoStat[2] { new CardInfoStat { positive = true, stat = "Health", amount = "+20%", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = false, stat = "Block Cooldown", amount = "+0.25s", 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 "MWC"; } } public class RareMoreDamage : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Damage+++"; val.Description = "Get 100% bonus damage"; val.ModName = "MGC"; val.Rarity = RarityUtils.GetRarity("Rare"); val.Theme = (CardThemeColorType)1; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Damage", amount = "+100%", simepleAmount = (SimpleAmount)0 } }; return val; } } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage *= 2f; } } public class RareReloadSpeed : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "ReloadSpeed+++"; val.Description = "Reload 100% Faster"; val.ModName = "MGC"; val.Rarity = RarityUtils.GetRarity("Rare"); val.Theme = (CardThemeColorType)1; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "ReloadSpeed", amount = "+100%", simepleAmount = (SimpleAmount)0 } }; return val; } } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.reloadTime *= 0.5f; } } public class UncommonMoreDamage : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Damage++"; val.Description = "Get 25% bonus damage"; val.ModName = "MGC"; val.Rarity = RarityUtils.GetRarity("Uncommon"); val.Theme = (CardThemeColorType)1; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Damage", amount = "+25%", simepleAmount = (SimpleAmount)0 } }; return val; } } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage *= 1.25f; } } public class UncommonReloadSpeed : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "ReloadSpeed++"; val.Description = "Reload 25% Faster"; val.ModName = "MGC"; val.Rarity = RarityUtils.GetRarity("Uncommon"); val.Theme = (CardThemeColorType)1; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Reload", amount = "+25%", simepleAmount = (SimpleAmount)0 } }; return val; } } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.reloadTime *= 0.75f; } } public class PistolAmmoProcessing : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Pistol Ammo Processing"; val.Description = "You get access to better ammo"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Damage", amount = "+10%", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = PistolClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage += 0.1f; } } public class PistolAutomaticFire : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Pistol Automatic Fire"; val.Description = "Enable auto fire"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Uncommon"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Auto Fire", amount = "True", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = PistolClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = true; } } public class PistolMoreAmmo : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Pistol Ammo+"; val.Description = "Add 2 ammo to your pistol"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Ammo", amount = "+2", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = PistolClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gunAmmo.maxAmmo += 2; } } public class PistolCard0 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Expected O, but got Unknown //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Expected O, but got Unknown //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: 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_0176: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Expected O, but got Unknown CardDetails val = new CardDetails(); val.Title = "Glock 17"; val.Description = "Look at that glock"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)4; val.Stats = (CardInfoStat[])(object)new CardInfoStat[7] { new CardInfoStat { positive = true, stat = "damage", amount = "0.7f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "attackSpeed", amount = "0.4f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "reloadTime", amount = "1.0f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "ammo", amount = "4", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "numberOfProjectiles", amount = "1", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "spread", amount = "0f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = false, stat = "autoFire", amount = "false", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = PistolClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = true; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage = 0.7f; gun.attackSpeed = 0.4f; gun.reloadTime = 1f; gunAmmo.maxAmmo = 4; gun.numberOfProjectiles = 1; gun.spread = 0f; gun.projectileSpeed = 1f; gun.projectielSimulatonSpeed = 1f; gun.drag = 0f; gun.destroyBulletAfter = 0f; gun.recoil = 1f; } } public class PistolCard0Upgrade0 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Extended Magazine"; val.Description = "Glock 17 - Increase Ammo"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Ammo", amount = "+2", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = PistolClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gunAmmo.maxAmmo += 2; } } public class PistolCard0Upgrade1 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Match Barrel"; val.Description = "Glock 17 - Increase Accuracy"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "projectileSpeed", amount = "+50%", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = PistolClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.projectileSpeed *= 1.5f; } } public class PistolCard0Upgrade2 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Tactical Trigger"; val.Description = "Glock 17 - Increase Fire Rate"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "attackSpeed", amount = "-0.25%", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = PistolClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.attackSpeed *= 0.75f; } } public class PistolCard1 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Expected O, but got Unknown //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Expected O, but got Unknown //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: 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_0176: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Expected O, but got Unknown CardDetails val = new CardDetails(); val.Title = "SIG P320 RX"; val.Description = "Time to show them!"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Uncommon"); val.Theme = (CardThemeColorType)4; val.Stats = (CardInfoStat[])(object)new CardInfoStat[7] { new CardInfoStat { positive = true, stat = "damage", amount = "1f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "attackSpeed", amount = "0.27f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "reloadTime", amount = "0.9f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "ammo", amount = "8", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "numberOfProjectiles", amount = "1", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "spread", amount = "0f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = false, stat = "autoFire", amount = "false", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = PistolClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = true; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage = 1f; gun.attackSpeed = 0.27f; gun.reloadTime = 0.9f; gunAmmo.maxAmmo = 8; gun.numberOfProjectiles = 1; gun.spread = 0f; gun.projectileSpeed = 1.75f; gun.projectielSimulatonSpeed = 1f; gun.drag = 0f; gun.destroyBulletAfter = 0f; } } public class PistolCard2 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Expected O, but got Unknown //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Expected O, but got Unknown //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: 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_0176: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Expected O, but got Unknown CardDetails val = new CardDetails(); val.Title = "FN Five-seveN"; val.Description = "Look at that glock"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Rare"); val.Theme = (CardThemeColorType)4; val.Stats = (CardInfoStat[])(object)new CardInfoStat[7] { new CardInfoStat { positive = true, stat = "damage", amount = "0.7f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "attackSpeed", amount = "0.4f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "reloadTime", amount = "1.0f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "ammo", amount = "4", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "numberOfProjectiles", amount = "1", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "spread", amount = "0f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = false, stat = "autoFire", amount = "false", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = PistolClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = true; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage = 0.7f; gun.attackSpeed = 0.4f; gun.reloadTime = 1f; gunAmmo.maxAmmo = 4; gun.numberOfProjectiles = 1; gun.spread = 0f; gun.projectileSpeed = 1f; gun.projectielSimulatonSpeed = 1f; gun.drag = 0f; gun.destroyBulletAfter = 0f; gun.recoil = 1f; } } internal class PistolClass : ClassHandler { internal static string name = "Pistol"; public override IEnumerator Init() { while (!Object.op_Implicit((Object)(object)PistolCard0.card) || !Object.op_Implicit((Object)(object)PistolCard0Upgrade0.card) || !Object.op_Implicit((Object)(object)PistolCard0Upgrade1.card) || !Object.op_Implicit((Object)(object)PistolCard0Upgrade2.card) || !Object.op_Implicit((Object)(object)PistolCard1.card)) { yield return null; } ClassesRegistry.Register(PistolCard0.card, (CardType)1, 1); ClassesRegistry.Register(PistolCard0Upgrade0.card, (CardType)16, PistolCard0.card, 1); ClassesRegistry.Register(PistolCard0Upgrade1.card, (CardType)16, PistolCard0.card, 1); ClassesRegistry.Register(PistolCard0Upgrade2.card, (CardType)16, PistolCard0.card, 1); ClassesRegistry.Register(PistolCard1.card, (CardType)16, new CardInfo[1][] { (CardInfo[])(object)new CardInfo[3] { PistolCard0Upgrade0.card, PistolCard0Upgrade1.card, PistolCard0Upgrade2.card } }, 1); } } public class ShotgunAutomaticFire : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Shotgun Automatic Fire"; val.Description = "Enable auto fire"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Rare"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Auto Fire", amount = "True", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = true; } } public class ShotgunBetterSlug : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Better Slug"; val.Description = "Add damage and make bullet last longer"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[2] { new CardInfoStat { positive = true, stat = "Damage", amount = "+10%", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "DestroyBulletAfter", amount = "+50%", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage *= 1.1f; gun.destroyBulletAfter *= 1.5f; } } public class ShotgunCard : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Expected O, but got Unknown //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Expected O, but got Unknown //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: 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_0176: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Expected O, but got Unknown CardDetails val = new CardDetails(); val.Title = "Shotgun"; val.Description = "Take that shotgun"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)4; val.Stats = (CardInfoStat[])(object)new CardInfoStat[7] { new CardInfoStat { positive = true, stat = "damage", amount = "0.5f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "attackSpeed", amount = "0.8f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "reloadTime", amount = "2f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "ammo", amount = "4", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "numberOfProjectiles", amount = "4", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "spread", amount = "0.2f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = false, stat = "autoFire", amount = "false", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = true; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage = 0.5f; gun.attackSpeed = 0.8f; gun.reloadTime = 2f; gunAmmo.maxAmmo = 4; gun.numberOfProjectiles = 4; gun.spread = 0.2f; gun.projectileSpeed = 2f; gun.projectielSimulatonSpeed = 1f; gun.drag = 0f; gun.destroyBulletAfter = 0.15f; } } public class ShotgunLongerBarrel : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Longer Barrel"; val.Description = "Reduce the spread"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Spread", amount = "-0.05f", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.spread -= 0.05f; } } public class ShotgunMagazineExtender : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Magazine Extender"; val.Description = "Get more slugs"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Max Ammo", amount = "+4", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gunAmmo.maxAmmo += 4; } } public class ShotgunCard0 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Expected O, but got Unknown //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Expected O, but got Unknown //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: 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_0176: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Expected O, but got Unknown CardDetails val = new CardDetails(); val.Title = "Mossberg 500"; val.Description = "Take that shotgun"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)4; val.Stats = (CardInfoStat[])(object)new CardInfoStat[7] { new CardInfoStat { positive = true, stat = "damage", amount = "0.5f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "attackSpeed", amount = "0.8f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "reloadTime", amount = "2f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "ammo", amount = "4", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "numberOfProjectiles", amount = "4", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "spread", amount = "0.2f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = false, stat = "autoFire", amount = "false", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = true; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage = 0.5f; gun.attackSpeed = 0.8f; gun.reloadTime = 2f; gunAmmo.maxAmmo = 4; gun.numberOfProjectiles = 4; gun.spread = 0.2f; gun.projectileSpeed = 2f; gun.projectielSimulatonSpeed = 1f; gun.drag = 0f; gun.destroyBulletAfter = 0.15f; } } public class ShotgunCard0Upgrade0 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Ported Barrel"; val.Description = "Mossberg 500 - Reduce Spread"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Spread", amount = "-25%", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.spread *= 0.75f; } } public class ShotgunCard0Upgrade1 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Extended Tube"; val.Description = "Mossberg 500 - Increased Ammo Capacity"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Ammo", amount = "+4", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gunAmmo.maxAmmo += 4; } } public class ShotgunCard0Upgrade2 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Heavy Load Shells"; val.Description = "Mossberg 500 - Increased Damage"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Damage", amount = "+20%", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage *= 1.2f; } } public class ShotgunCard1 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Expected O, but got Unknown //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Expected O, but got Unknown //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: 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_0176: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Expected O, but got Unknown CardDetails val = new CardDetails(); val.Title = "Benelli M4"; val.Description = "Take that shotgun"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)4; val.Stats = (CardInfoStat[])(object)new CardInfoStat[7] { new CardInfoStat { positive = true, stat = "damage", amount = "0.7f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "attackSpeed", amount = "0.7f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "reloadTime", amount = "1.75f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "ammo", amount = "8", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "numberOfProjectiles", amount = "4", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "spread", amount = "0.15f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = false, stat = "autoFire", amount = "false", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = true; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage = 0.7f; gun.attackSpeed = 0.7f; gun.reloadTime = 1.75f; gunAmmo.maxAmmo = 10; gun.numberOfProjectiles = 5; gun.spread = 0.15f; gun.projectileSpeed = 2f; gun.projectielSimulatonSpeed = 1f; gun.drag = 0f; gun.destroyBulletAfter = 0.2f; } } public class ShotgunCard2 : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Expected O, but got Unknown //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Expected O, but got Unknown //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: 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_0176: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Expected O, but got Unknown CardDetails val = new CardDetails(); val.Title = "AA-12"; val.Description = "Take that shotgun"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)4; val.Stats = (CardInfoStat[])(object)new CardInfoStat[7] { new CardInfoStat { positive = true, stat = "damage", amount = "0.5f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "attackSpeed", amount = "0.8f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "reloadTime", amount = "2f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "ammo", amount = "4", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "numberOfProjectiles", amount = "4", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "spread", amount = "0.2f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "autoFire", amount = "true", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = ShotgunClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = false; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage = 0.5f; gun.attackSpeed = 0.8f; gun.reloadTime = 2f; gunAmmo.maxAmmo = 4; gun.numberOfProjectiles = 4; gun.spread = 0.2f; gun.projectileSpeed = 2f; gun.projectielSimulatonSpeed = 1f; gun.drag = 0f; gun.destroyBulletAfter = 0.15f; } } internal class ShotgunClass : ClassHandler { internal static string name = "Shotgun"; public override IEnumerator Init() { while (!Object.op_Implicit((Object)(object)ShotgunCard0.card) || !Object.op_Implicit((Object)(object)ShotgunCard0Upgrade0.card) || !Object.op_Implicit((Object)(object)ShotgunCard0Upgrade1.card) || !Object.op_Implicit((Object)(object)ShotgunCard0Upgrade2.card) || !Object.op_Implicit((Object)(object)ShotgunCard1.card)) { yield return null; } ClassesRegistry.Register(ShotgunCard0.card, (CardType)1, 1); ClassesRegistry.Register(ShotgunCard0Upgrade0.card, (CardType)16, ShotgunCard0.card, 1); ClassesRegistry.Register(ShotgunCard0Upgrade1.card, (CardType)16, ShotgunCard0.card, 1); ClassesRegistry.Register(ShotgunCard0Upgrade2.card, (CardType)16, ShotgunCard0.card, 1); ClassesRegistry.Register(ShotgunCard1.card, (CardType)16, new CardInfo[1][] { (CardInfo[])(object)new CardInfo[3] { ShotgunCard0Upgrade0.card, ShotgunCard0Upgrade1.card, ShotgunCard0Upgrade2.card } }, 1); } } public class SMGCard : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Expected O, but got Unknown //IL_0128: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_013f: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Expected O, but got Unknown //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_0159: Unknown result type (might be due to invalid IL or missing references) //IL_0160: 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_0176: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_017e: Expected O, but got Unknown CardDetails val = new CardDetails(); val.Title = "SMG"; val.Description = "Take that SMG"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)4; val.Stats = (CardInfoStat[])(object)new CardInfoStat[7] { new CardInfoStat { positive = true, stat = "damage", amount = "0.3f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "attackSpeed", amount = "0.25f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "reloadTime", amount = "1.6f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "ammo", amount = "6", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "numberOfProjectiles", amount = "1", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "spread", amount = "0.1f", simepleAmount = (SimpleAmount)0 }, new CardInfoStat { positive = true, stat = "autoFire", amount = "true", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = SMGClass.name; } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { gun.dontAllowAutoFire = false; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.damage = 0.3f; gun.attackSpeed = 0.25f; gun.reloadTime = 1.6f; gunAmmo.maxAmmo = 6; gun.numberOfProjectiles = 1; gun.spread = 0.1f; gun.projectileSpeed = 1.5f; gun.projectielSimulatonSpeed = 2f; gun.drag = 2f; gun.destroyBulletAfter = 0f; } } internal class SMGClass : ClassHandler { internal static string name = "SMG"; public override IEnumerator Init() { while (!Object.op_Implicit((Object)(object)SMGCard.card) || !Object.op_Implicit((Object)(object)SMGMoreAmmo.card)) { yield return null; } ClassesRegistry.Register(SMGCard.card, (CardType)1, 1); ClassesRegistry.Register(SMGMoreAmmo.card, (CardType)16, SMGCard.card, 5); } } public class SMGMoreAmmo : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "SMG Ammo+"; val.Description = "Add 2 ammo to your SMG"; val.ModName = "MWC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Ammo", amount = "+3", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void Callback() { ExtensionMethods.GetOrAddComponent<ClassNameMono>(((Component)this).gameObject, false).className = SMGClass.name; } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gunAmmo.maxAmmo += 3; } } public class Template : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0047: 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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown CardDetails val = new CardDetails(); val.Title = "Template Name"; val.Description = "Template Description"; val.ModName = "MWC"; val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = true, stat = "Statistique (White)", amount = "Amount (Green | Red)", simepleAmount = (SimpleAmount)0 } }; return val; } } public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block) { } } public class AddAttackSpeed : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 val = new CardDetails(); val.Title = "Add AttackSpeed"; val.Description = "Add AttackSpeed"; val.ModName = "MTC"; val.Rarity = RarityUtils.GetRarity("Common"); val.Theme = (CardThemeColorType)7; val.Stats = (CardInfoStat[])(object)new CardInfoStat[1] { new CardInfoStat { positive = false, stat = "AttackSpeed", amount = "+0.1f", simepleAmount = (SimpleAmount)0 } }; return val; } } protected override void Added(Player player, Gun gun, GunAmmo gunAmmo, CharacterData data, HealthHandler health, Gravity gravity, Block block, CharacterStatModifiers characterStats) { gun.attackSpeed += 0.1f; } } public class AddDestroyBulletAfter : SimpleCard { internal static CardInfo card; public override CardDetails Details { get { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Expected O, but got Unknown //IL_0030: 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_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 (