using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using ModdingUtils.Utils;
using ModsPlus;
using RarityLib.Utils;
using UnboundLib.Cards;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("TNL")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("TNL")]
[assembly: AssemblyTitle("TNL")]
[assembly: AssemblyVersion("1.0.0.0")]
public static class CardRegistry
{
private static Dictionary<Type, CardInfo> storedCardInfo = new Dictionary<Type, CardInfo>();
public static void RegisterCard<T>(bool hidden = false) where T : CustomCard
{
CustomCard.BuildCard<T>((Action<CardInfo>)delegate(CardInfo c)
{
StoreCard<T>(c);
if (hidden)
{
Cards.instance.AddHiddenCard(c);
}
});
}
private static void StoreCard<T>(CardInfo card) where T : CustomCard
{
storedCardInfo.Add(typeof(T), card);
}
public static CardInfo GetCard<T>() where T : CustomCard
{
if (storedCardInfo.TryGetValue(typeof(T), out var value))
{
return value;
}
return null;
}
public static CardInfo GetCard(Type T)
{
if (storedCardInfo.TryGetValue(T, out var value))
{
return value;
}
return null;
}
}
public class MagicBlackPepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Black Pepper";
val.Description = "A magic black pepper (you feel uneasy)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Rare");
val.Theme = (CardThemeColorType)2;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG4%20(3).jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Health",
amount = "-90%",
simepleAmount = (SimpleAmount)4
},
new CardInfoStat
{
positive = true,
stat = "Damage",
amount = "+39%",
simepleAmount = (SimpleAmount)3
},
new CardInfoStat
{
positive = true,
stat = "Ammunition",
amount = "+1",
simepleAmount = (SimpleAmount)4
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["health"](0.1f);
dictionary["damage"](1.4f);
dictionary["ammo"](1f);
}
}
public class MagicBluePepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Blue Pepper";
val.Description = "A magic blue pepper (it has a strange Aura around it)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Uncommon");
val.Theme = (CardThemeColorType)7;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG2.jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Ammunition",
amount = "+3",
simepleAmount = (SimpleAmount)2
},
new CardInfoStat
{
positive = true,
stat = "Reload Time",
amount = "-10%",
simepleAmount = (SimpleAmount)5
},
new CardInfoStat
{
positive = true,
stat = "Projectiles",
amount = "+2",
simepleAmount = (SimpleAmount)1
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["ammo"](3f);
dictionary["reload"](0.9f);
dictionary["projectiles"](2f);
}
}
public class MagicBrownPepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Brown Pepper";
val.Description = "A magic brown pepper (very hearty)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Rare");
val.Theme = (CardThemeColorType)6;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG1.jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Health",
amount = "+50%",
simepleAmount = (SimpleAmount)3
},
new CardInfoStat
{
positive = true,
stat = "Damage",
amount = "+10%",
simepleAmount = (SimpleAmount)1
},
new CardInfoStat
{
positive = true,
stat = "Reload Time",
amount = "-10%",
simepleAmount = (SimpleAmount)5
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["health"](1.5f);
dictionary["damage"](1.1f);
dictionary["reload"](0.9f);
}
}
public class MagicGreenPepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Green Pepper";
val.Description = "A magic green pepper covered in slime (bouncy bouncy bounce)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Uncommon");
val.Theme = (CardThemeColorType)5;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG4.xQCI6tEbsS1Ckh_xJ.jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Bounces",
amount = "+5",
simepleAmount = (SimpleAmount)2
},
new CardInfoStat
{
positive = true,
stat = "Health",
amount = "+10%",
simepleAmount = (SimpleAmount)1
},
new CardInfoStat
{
positive = true,
stat = "Attack Speed",
amount = "+10%",
simepleAmount = (SimpleAmount)1
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["bounces"](5f);
dictionary["health"](1.1f);
dictionary["attackSpeed"](1.1f);
}
}
public class MagicGreyPepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
//IL_00e5: Unknown result type (might be due to invalid IL or missing references)
//IL_00ec: Unknown result type (might be due to invalid IL or missing references)
//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
//IL_0102: Unknown result type (might be due to invalid IL or missing references)
//IL_0104: Unknown result type (might be due to invalid IL or missing references)
//IL_010a: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Grey Pepper";
val.Description = "a magic grey pepper (strange flavor)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Rare");
val.Theme = (CardThemeColorType)3;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG1.FR5v3.jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[4]
{
new CardInfoStat
{
positive = true,
stat = "Damage",
amount = "+39%",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = true,
stat = "Health",
amount = "+30%",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = true,
stat = "Reload Time",
amount = "+19%",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = true,
stat = "Ammunition",
amount = "-1",
simepleAmount = (SimpleAmount)0
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["damage"](1.4f);
dictionary["health"](1.3f);
dictionary["reload"](1.2f);
dictionary["ammo"](-1f);
}
}
public class MagicOrangePepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Orange Pepper";
val.Description = "A magic orange pepper (it tastes like power)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Uncommon");
val.Theme = (CardThemeColorType)1;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG2%20(1).jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Ammunition",
amount = "+4",
simepleAmount = (SimpleAmount)3
},
new CardInfoStat
{
positive = true,
stat = "Bullet Speed",
amount = "+19%",
simepleAmount = (SimpleAmount)2
},
new CardInfoStat
{
positive = true,
stat = "Reload Time",
amount = "+39%",
simepleAmount = (SimpleAmount)2
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["ammo"](4f);
dictionary["bulletSpeed"](1.2f);
dictionary["reload"](1.4f);
}
}
public class MagicPinkPepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Pink Pepper";
val.Description = "a magic pink pepper (you feel fast as lightning)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Rare");
val.Theme = (CardThemeColorType)8;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG1.pfHrlk3tKPVKy.jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Bursts",
amount = "+4",
simepleAmount = (SimpleAmount)3
},
new CardInfoStat
{
positive = true,
stat = "Time Between Bullets",
amount = "+0.7 seconds",
simepleAmount = (SimpleAmount)7
},
new CardInfoStat
{
positive = true,
stat = "Ammunition",
amount = "+2",
simepleAmount = (SimpleAmount)0
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["bursts"](4f);
dictionary["timeBetweenBullets"](0.7f);
dictionary["ammo"](2f);
}
}
public class MagicPurplePepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Purple Pepper";
val.Description = "A magic purple pepper (its cold to the touch)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Uncommon");
val.Theme = (CardThemeColorType)4;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG4%20(2).jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Attack Speed",
amount = "+19%",
simepleAmount = (SimpleAmount)2
},
new CardInfoStat
{
positive = true,
stat = "Health",
amount = "+10%",
simepleAmount = (SimpleAmount)1
},
new CardInfoStat
{
positive = true,
stat = "Reload Time",
amount = "-20%",
simepleAmount = (SimpleAmount)5
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["attackSpeed"](1.2f);
dictionary["health"](1.1f);
dictionary["reload"](0.8f);
}
}
public class MagicRedPepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
//IL_00e5: Unknown result type (might be due to invalid IL or missing references)
//IL_00ec: Unknown result type (might be due to invalid IL or missing references)
//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
//IL_0102: Unknown result type (might be due to invalid IL or missing references)
//IL_0104: Unknown result type (might be due to invalid IL or missing references)
//IL_010a: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Red Pepper ";
val.Description = "A magic red pepper (you feel powerful)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Uncommon");
val.Theme = (CardThemeColorType)0;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG4%20(1).jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[4]
{
new CardInfoStat
{
positive = true,
stat = "Damage",
amount = "+10%",
simepleAmount = (SimpleAmount)2
},
new CardInfoStat
{
positive = true,
stat = "Health",
amount = "+10%",
simepleAmount = (SimpleAmount)2
},
new CardInfoStat
{
positive = true,
stat = "Bursts",
amount = "+2",
simepleAmount = (SimpleAmount)1
},
new CardInfoStat
{
positive = true,
stat = "Time Between Bullets",
amount = "+0.8 seconds",
simepleAmount = (SimpleAmount)5
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["damage"](1.1f);
dictionary["health"](1.1f);
dictionary["bursts"](2f);
dictionary["timeBetweenBullets"](0.8f);
}
}
public class MagicWhitePepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic White Pepper";
val.Description = "A magic white pepper (your soul is healed)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Rare");
val.Theme = (CardThemeColorType)3;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG4.jAVXD2dV9.jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Damage",
amount = "-31%",
simepleAmount = (SimpleAmount)6
},
new CardInfoStat
{
positive = true,
stat = "Health",
amount = "+50%",
simepleAmount = (SimpleAmount)3
},
new CardInfoStat
{
positive = true,
stat = "Ammunition",
amount = "+1",
simepleAmount = (SimpleAmount)1
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["damage"](0.7f);
dictionary["health"](1.5f);
dictionary["ammo"](1f);
}
}
public class MagicYellowPepper : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "Magic Yellow Pepper";
val.Description = "A magic yellow pepper (you feel like a cosmic warrior)";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Uncommon");
val.Theme = (CardThemeColorType)1;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG3.QxG.jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Attack Speed",
amount = "+30%",
simepleAmount = (SimpleAmount)2
},
new CardInfoStat
{
positive = true,
stat = "Damage",
amount = "+10%",
simepleAmount = (SimpleAmount)1
},
new CardInfoStat
{
positive = true,
stat = "Bounces",
amount = "+2",
simepleAmount = (SimpleAmount)2
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["attackSpeed"](1.3f);
dictionary["damage"](1.1f);
dictionary["bounces"](2f);
}
}
public class NEO : SimpleCard
{
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_002d: Unknown result type (might be due to invalid IL or missing references)
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_007e: Unknown result type (might be due to invalid IL or missing references)
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0088: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_0094: Unknown result type (might be due to invalid IL or missing references)
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Expected O, but got Unknown
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b9: Unknown result type (might be due to invalid IL or missing references)
//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
//IL_00de: Expected O, but got Unknown
CardDetails val = new CardDetails();
val.Title = "NEO";
val.Description = "Makes your bullets zoom like lightning but you lose a significant amount of HP";
val.ModName = "TNL";
val.Rarity = RarityUtils.GetRarity("Epic");
val.Theme = (CardThemeColorType)5;
val.Art = DeckSmithUtil.Instance.GetArtFromUrl("file:///E:/Totems%20files%20etc/OMG%20ROUNDS%20WOWIEE/sprites/OIG4.jpg");
val.Stats = (CardInfoStat[])(object)new CardInfoStat[3]
{
new CardInfoStat
{
positive = true,
stat = "Bullet Speed",
amount = "+320%",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = true,
stat = "Attack Speed",
amount = "+100%",
simepleAmount = (SimpleAmount)0
},
new CardInfoStat
{
positive = true,
stat = "Health",
amount = "-70%",
simepleAmount = (SimpleAmount)7
}
};
return val;
}
}
public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
{
Dictionary<string, Action<float>> dictionary = new Dictionary<string, Action<float>>();
dictionary.Add("damage", delegate(float val)
{
gun.damage = val;
});
dictionary.Add("health", delegate(float val)
{
statModifiers.health = val;
});
dictionary.Add("reload", delegate(float val)
{
gun.reloadTime = val;
});
dictionary.Add("ammo", delegate(float val)
{
gun.ammo = (int)val;
});
dictionary.Add("projectiles", delegate(float val)
{
gun.numberOfProjectiles = Mathf.Max(1, (int)val);
});
dictionary.Add("bursts", delegate(float val)
{
gun.bursts = (int)val;
});
dictionary.Add("timeBetweenBullets", delegate(float val)
{
gun.timeBetweenBullets = val;
});
dictionary.Add("attackSpeed", delegate(float val)
{
gun.attackSpeed = val;
});
dictionary.Add("bounces", delegate(float val)
{
gun.reflects = (int)val;
});
dictionary.Add("bulletSpeed", delegate(float val)
{
gun.projectileSpeed = val;
});
dictionary["bulletSpeed"](4.2f);
dictionary["attackSpeed"](2f);
dictionary["health"](0.3f);
}
}
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("dev.totem.rounds.tnl", "TNL", "0.0.1")]
[BepInProcess("Rounds.exe")]
public class TNLPlugin : BaseUnityPlugin
{
private const string ModId = "dev.totem.rounds.tnl";
private const string ModName = "TNL";
private const string ModVersion = "0.0.1";
private const string CompatabilityModName = "TNL";
private void Awake()
{
CardRegistry.RegisterCard<NEO>(hidden: false);
CardRegistry.RegisterCard<MagicRedPepper>(hidden: false);
CardRegistry.RegisterCard<MagicGreenPepper>(hidden: false);
CardRegistry.RegisterCard<MagicBluePepper>(hidden: false);
CardRegistry.RegisterCard<MagicPurplePepper>(hidden: false);
CardRegistry.RegisterCard<MagicWhitePepper>(hidden: false);
CardRegistry.RegisterCard<MagicOrangePepper>(hidden: false);
CardRegistry.RegisterCard<MagicBlackPepper>(hidden: false);
CardRegistry.RegisterCard<MagicYellowPepper>(hidden: false);
CardRegistry.RegisterCard<MagicBrownPepper>(hidden: false);
CardRegistry.RegisterCard<MagicPinkPepper>(hidden: false);
CardRegistry.RegisterCard<MagicGreyPepper>(hidden: false);
}
private void Start()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
new Harmony("dev.totem.rounds.tnl").PatchAll();
}
}