Decompiled source of Items And Cool Stuff v1.0.0

plugins/iacs.dll

Decompiled 3 weeks ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
using System.Security.Permissions;
using Alexandria.ItemAPI;
using BepInEx;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Mod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Mod")]
[assembly: AssemblyCopyright("Copyright ©  2020")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("d6d7a494-722e-4763-959b-c2d6b6a42b01")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace iacs;

public class ExamplePassive11 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_00d8: Unknown result type (might be due to invalid IL or missing references)
		string text = "The Magnum Star";
		string text2 = "iacs/Resources/the_magnum_star.png";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Power Of The Sheriff";
		string text4 = "Cool ass star lmao!\n\nPower to whom can behold it.";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)2, 0.1f, (ModifyMethod)1);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)3, 2f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)10, 0.4f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)1, 3f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)28, 1.1f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)27, 1.1f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)5, 3f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)16, 2f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)11, 3f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)21, 50f, (ModifyMethod)0);
		((PickupObject)examplePassive).quality = (ItemQuality)(-100);
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive10 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_0062: Unknown result type (might be due to invalid IL or missing references)
		string text = "Neo-Blood-Blank";
		string text2 = "iacs/Resources/NeoBloodBlank.png";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Heavily Moddified Blank";
		string text4 = "Cool ass funny blank lmao!\n\nSo moddified and high tech that it can clone itself into more normal blanks and even gives you lifeforce.";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)18, 2f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)3, 1f, (ModifyMethod)0);
		((PickupObject)examplePassive).quality = (ItemQuality)5;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive9 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_0081: Unknown result type (might be due to invalid IL or missing references)
		string text = "Casing Forged Rolling Pin";
		string text2 = "iacs/Resources/brp";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Making Pizza";
		string text4 = "Cool ass rolling pin lmao!\n\nMade from a few empty casings this pin is imbued with dark energy and advanced rolling techniques.";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)28, 1f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)27, 0.6f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)14, 1f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)21, 2f, (ModifyMethod)1);
		((PickupObject)examplePassive).quality = (ItemQuality)4;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive8 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_0062: Unknown result type (might be due to invalid IL or missing references)
		string text = "Speedy Ring";
		string text2 = "iacs/Resources/speedy_ring";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Gotta Go Faster";
		string text4 = "Cool ass ring lmao!\n\nSeems oddly familiar doesn't it? Wonder who it originally belonged to.";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)28, 1f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)0, 1.35f, (ModifyMethod)1);
		((PickupObject)examplePassive).quality = (ItemQuality)4;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive7 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_0054: Unknown result type (might be due to invalid IL or missing references)
		string text = "Barrel Extension";
		string text2 = "iacs/Resources/barrel_extension";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Long";
		string text4 = "Cool ass barrel longer maker lmao!\n\nMakes bullets shoot farther. Don't really know how it does, but it just kind of does it.";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)26, 1f, (ModifyMethod)0);
		((PickupObject)examplePassive).quality = (ItemQuality)3;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive6 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_0063: Unknown result type (might be due to invalid IL or missing references)
		string text = "Lazy Blobulon";
		string text2 = "iacs/Resources/lazy_blobulon";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "'I'll Fight you Tomorrow'";
		string text4 = "Cool ass little blublon guy lmao!\n\nSo lazy it doesnt even want to attack you.";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)28, 0.75f, (ModifyMethod)1);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)20, 3f, (ModifyMethod)0);
		((PickupObject)examplePassive).quality = (ItemQuality)2;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive5 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_0070: Unknown result type (might be due to invalid IL or missing references)
		string text = "Magnum Pill";
		string text2 = "iacs/Resources/magnum_pill";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Illegal In The Breach";
		string text4 = "Dont do pills unless told by a professional.\n\nHolds power only known by the strongest of the gungeon.";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)5, 0.6f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)14, 3f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)0, 0.9f, (ModifyMethod)1);
		((PickupObject)examplePassive).quality = (ItemQuality)4;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive4 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_0061: Unknown result type (might be due to invalid IL or missing references)
		string text = "Shell Fish";
		string text2 = "iacs/Resources/shell_fish.png";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Very Very Rare";
		string text4 = "Cool ass fishy thing lmao!\n\nThough it has no powers or abilities this fish is extremely rare, tasty and expensive..";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)4, 0.5f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)0, 0.99f, (ModifyMethod)1);
		((PickupObject)examplePassive).quality = (ItemQuality)5;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive3 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_007f: Unknown result type (might be due to invalid IL or missing references)
		string text = "Mini Gun";
		string text2 = "iacs/Resources/toy_revolver.png";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Goo Goo Gah Gah";
		string text4 = "Cool ass little gun lmao!\n\nMade for the younger gundead, however its still usable for an adult.";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)6, 0.3f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)1, 0.2f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)15, -0.2f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)10, 0.8f, (ModifyMethod)1);
		((PickupObject)examplePassive).quality = (ItemQuality)3;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive2 : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_0063: Unknown result type (might be due to invalid IL or missing references)
		string text = "Inscripted Magazine";
		string text2 = "iacs/Resources/inscripted_drum_mag.png";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Runic Style";
		string text4 = "Cool ass drawings on a magazine lmao!\n\nOne of the oldest magazines known in the gungeon. The gundead are still trying to decode it to this day!";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)16, 0.4f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)14, 2f, (ModifyMethod)0);
		((PickupObject)examplePassive).quality = (ItemQuality)4;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
public class ExamplePassive : PassiveItem
{
	public static void Register()
	{
		//IL_000e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Expected O, but got Unknown
		//IL_007e: Unknown result type (might be due to invalid IL or missing references)
		string text = "Mortar Round";
		string text2 = "iacs/Resources/Mortar_Round_Item.png";
		GameObject val = new GameObject(text);
		ExamplePassive examplePassive = val.AddComponent<ExamplePassive>();
		ItemBuilder.AddSpriteToObject(text, text2, val, (Assembly)null);
		string text3 = "Heavy, Very Heavy.";
		string text4 = "Cool ass mortar round lmao!\n\nThe Bullet Kin hate mortar rounds like this, but other gundead don't seem to care anymore about them then eachother.";
		ItemBuilder.SetupItem((PickupObject)(object)examplePassive, text3, text4, "iacs");
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)22, 0.75f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)2, 1.3f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)5, 0.6f, (ModifyMethod)0);
		ItemBuilder.AddPassiveStatModifier((PickupObject)(object)examplePassive, (StatType)6, 0.8f, (ModifyMethod)1);
		((PickupObject)examplePassive).quality = (ItemQuality)4;
	}

	public override void Pickup(PlayerController player)
	{
		((PassiveItem)this).Pickup(player);
		Plugin.Log("Player picked up " + ((PickupObject)this).DisplayName);
	}

	public override void DisableEffect(PlayerController player)
	{
		Plugin.Log("Player dropped or got rid of " + ((PickupObject)this).DisplayName);
	}
}
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("LPM.etg.iacs", "items and cool stuff", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	public const string GUID = "LPM.etg.iacs";

	public const string NAME = "items and cool stuff";

	public const string VERSION = "1.0.0";

	public const string TEXT_COLOR = "#00FFFF";

	public void Start()
	{
		ETGModMainBehaviour.WaitForGameManagerStart((Action<GameManager>)GMStart);
	}

	public void GMStart(GameManager g)
	{
		ExamplePassive.Register();
		ExamplePassive2.Register();
		ExamplePassive3.Register();
		ExamplePassive4.Register();
		ExamplePassive5.Register();
		ExamplePassive6.Register();
		ExamplePassive7.Register();
		ExamplePassive8.Register();
		ExamplePassive9.Register();
		ExamplePassive10.Register();
		ExamplePassive11.Register();
		Log("items and cool stuff v1.0.0 started successfully.", "#00FFFF");
	}

	public static void Log(string text, string color = "#FFFFFF")
	{
		ETGModConsole.Log((object)("<color=" + color + ">" + text + "</color>"), false);
	}
}