Decompiled source of BigChungus v0.1.1

BepInEx\plugins\BigChungus\BigChungus.dll

Decompiled a day ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using UnboundLib.Cards;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("BigChungus")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+682305802bc396355555c897d75be1f3735a5401")]
[assembly: AssemblyProduct("BigChungus")]
[assembly: AssemblyTitle("BigChungus")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace RoundsModStarter;

[BepInPlugin("com.adrianwjohnson.bigchungus", "BigChungus", "0.1.1")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class ModMain : BaseUnityPlugin
{
	private const string ModId = "com.adrianwjohnson.bigchungus";

	private const string ModName = "BigChungus";

	private const string ModVersion = "0.1.1";

	private void Awake()
	{
		((BaseUnityPlugin)this).Logger.LogInfo((object)"BigChungus v0.1.1 loaded.");
	}

	private void Start()
	{
		CustomCard.BuildCard<StarterAllStatsCard>();
	}
}
public class StarterAllStatsCard : CustomCard
{
	public override void SetupCard(CardInfo cardInfo, Gun gun, ApplyCardStats cardStats, CharacterStatModifiers statModifiers, Block block)
	{
		statModifiers.health = 5f;
		statModifiers.sizeMultiplier = 10f;
	}

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

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

	protected override string GetTitle()
	{
		return "Lucas M";
	}

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

	protected override Rarity GetRarity()
	{
		return (Rarity)0;
	}

	protected override CardInfoStat[] GetStats()
	{
		//IL_0008: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		//IL_0023: Unknown result type (might be due to invalid IL or missing references)
		//IL_002b: Expected O, but got Unknown
		return (CardInfoStat[])(object)new CardInfoStat[1]
		{
			new CardInfoStat
			{
				amount = "5x health",
				stat = "Makes you a little more chunky then usual.",
				positive = true
			}
		};
	}

	protected override CardThemeColorType GetTheme()
	{
		return (CardThemeColorType)3;
	}

	protected override GameObject GetCardArt()
	{
		return null;
	}

	public override string GetModName()
	{
		return "BigChungus";
	}
}