Decompiled source of Lunar Wisp Falloff v1.1.2

LunarWispFalloff.dll

Decompiled 2 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using IL.EntityStates.LunarWisp;
using Mono.Cecil.Cil;
using MonoMod.Cil;
using RoR2;

[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.0", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("LunarWispFalloff")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("LunarWispFalloff")]
[assembly: AssemblyTitle("LunarWispFalloff")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace LunarWispFalloff
{
	[BepInPlugin("com.Moffein.LunarWispFalloff", "Lunar Wisp Falloff", "1.1.1")]
	public class Class1 : BaseUnityPlugin
	{
		[Serializable]
		[CompilerGenerated]
		private sealed class <>c
		{
			public static readonly <>c <>9 = new <>c();

			public static Func<Instruction, bool> <>9__0_1;

			public static Func<BulletAttack, BulletAttack> <>9__0_2;

			public static Func<Instruction, bool> <>9__0_3;

			public static Func<BulletAttack, BulletAttack> <>9__0_4;

			public static Manipulator <>9__0_0;

			internal void <Awake>b__0_0(ILContext il)
			{
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				//IL_0008: Expected O, but got Unknown
				ILCursor val = new ILCursor(il);
				val.GotoNext(new Func<Instruction, bool>[1]
				{
					(Instruction x) => ILPatternMatchingExt.MatchCallvirt<BulletAttack>(x, "Fire")
				});
				val.EmitDelegate<Func<BulletAttack, BulletAttack>>((Func<BulletAttack, BulletAttack>)delegate(BulletAttack bulletAttack)
				{
					//IL_0003: Unknown result type (might be due to invalid IL or missing references)
					bulletAttack.falloffModel = (FalloffModel)1;
					return bulletAttack;
				});
				val.GotoNext(new Func<Instruction, bool>[1]
				{
					(Instruction x) => ILPatternMatchingExt.MatchCallvirt<BulletAttack>(x, "Fire")
				});
				val.EmitDelegate<Func<BulletAttack, BulletAttack>>((Func<BulletAttack, BulletAttack>)delegate(BulletAttack bulletAttack)
				{
					//IL_0003: Unknown result type (might be due to invalid IL or missing references)
					bulletAttack.falloffModel = (FalloffModel)1;
					return bulletAttack;
				});
			}

			internal bool <Awake>b__0_1(Instruction x)
			{
				return ILPatternMatchingExt.MatchCallvirt<BulletAttack>(x, "Fire");
			}

			internal BulletAttack <Awake>b__0_2(BulletAttack bulletAttack)
			{
				//IL_0003: Unknown result type (might be due to invalid IL or missing references)
				bulletAttack.falloffModel = (FalloffModel)1;
				return bulletAttack;
			}

			internal bool <Awake>b__0_3(Instruction x)
			{
				return ILPatternMatchingExt.MatchCallvirt<BulletAttack>(x, "Fire");
			}

			internal BulletAttack <Awake>b__0_4(BulletAttack bulletAttack)
			{
				//IL_0003: Unknown result type (might be due to invalid IL or missing references)
				bulletAttack.falloffModel = (FalloffModel)1;
				return bulletAttack;
			}
		}

		public void Awake()
		{
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Expected O, but got Unknown
			object obj = <>c.<>9__0_0;
			if (obj == null)
			{
				Manipulator val = delegate(ILContext il)
				{
					//IL_0002: Unknown result type (might be due to invalid IL or missing references)
					//IL_0008: Expected O, but got Unknown
					ILCursor val2 = new ILCursor(il);
					val2.GotoNext(new Func<Instruction, bool>[1]
					{
						(Instruction x) => ILPatternMatchingExt.MatchCallvirt<BulletAttack>(x, "Fire")
					});
					val2.EmitDelegate<Func<BulletAttack, BulletAttack>>((Func<BulletAttack, BulletAttack>)delegate(BulletAttack bulletAttack)
					{
						//IL_0003: Unknown result type (might be due to invalid IL or missing references)
						bulletAttack.falloffModel = (FalloffModel)1;
						return bulletAttack;
					});
					val2.GotoNext(new Func<Instruction, bool>[1]
					{
						(Instruction x) => ILPatternMatchingExt.MatchCallvirt<BulletAttack>(x, "Fire")
					});
					val2.EmitDelegate<Func<BulletAttack, BulletAttack>>((Func<BulletAttack, BulletAttack>)delegate(BulletAttack bulletAttack)
					{
						//IL_0003: Unknown result type (might be due to invalid IL or missing references)
						bulletAttack.falloffModel = (FalloffModel)1;
						return bulletAttack;
					});
				};
				<>c.<>9__0_0 = val;
				obj = (object)val;
			}
			FireLunarGuns.OnFireAuthority += (Manipulator)obj;
		}
	}
}
namespace R2API.Utils
{
	[AttributeUsage(AttributeTargets.Assembly)]
	public class ManualNetworkRegistrationAttribute : Attribute
	{
	}
}