Decompiled source of Lambda SosigPickup v0.0.1

Lambda-SosigPickup.dll

Decompiled a week ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Security.Permissions;
using Arpy.LAMBDA;
using BepInEx;
using FistVR;
using HarmonyLib;
using Microsoft.CodeAnalysis;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyCompany("vithamonsta")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Lambda sosigs pick up items automagically, no blood oath")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: AssemblyProduct("Lambda-SosigPickup")]
[assembly: AssemblyTitle("Lambda SosigPickup")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace BepInEx
{
	[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
	[Conditional("CodeGeneration")]
	internal sealed class BepInAutoPluginAttribute : Attribute
	{
		public BepInAutoPluginAttribute(string id = null, string name = null, string version = null)
		{
		}
	}
}
namespace BepInEx.Preloader.Core.Patching
{
	[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
	[Conditional("CodeGeneration")]
	internal sealed class PatcherAutoPluginAttribute : Attribute
	{
		public PatcherAutoPluginAttribute(string id = null, string name = null, string version = null)
		{
		}
	}
}
namespace vithamonsta.LambdaFixes
{
	[BepInProcess("h3vr.exe")]
	[BepInPlugin("Lambda-SosigPickup", "Lambda SosigPickup", "0.0.1")]
	public class LamdaSosigPickupFix : BaseUnityPlugin
	{
		public const string Id = "Lambda-SosigPickup";

		public static string Name => "Lambda SosigPickup";

		public static string Version => "0.0.1";

		private void Awake()
		{
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			new Harmony("com.vithamonsta.LambdaFixes").PatchAll();
		}
	}
}
namespace visSpace.Patches
{
	[HarmonyPatch(typeof(LAMBDAPlugin), "SignInBlood")]
	public class LambdaBloodOathPatch
	{
		[HarmonyPrefix]
		public static bool Prefix(LAMBDAPlugin __instance)
		{
			__instance.updateBlood(true);
			return false;
		}
	}
	[HarmonyPatch(typeof(SosigDroneCameraController), "SetupSosigCamera")]
	public class LambdaSosigPickupPatch
	{
		[HarmonyPostfix]
		public static void Postfix(ref Sosig S)
		{
			S.CanPickup_Melee = true;
			S.CanPickup_Other = true;
			S.CanPickup_Ranged = true;
		}
	}
}