Decompiled source of Quit Overreacting v0.0.1

QuitOverreacting.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 BepInEx.Logging;
using CG.Game.Player;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using VFX.PlayerHealth;
using VoidManager;
using VoidManager.MPModChecks;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("QuitOverreacting")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.1+afb1fe395accf6ba3ce81cf964be46950da15ccf")]
[assembly: AssemblyProduct("QuitOverreacting")]
[assembly: AssemblyTitle("Stops player breathing noises when the player isn't taking damage. Client Side.")]
[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 QuitOverreacting
{
	[BepInPlugin("18107.QuitOverreacting", "Quit Overreacting", "0.0.1")]
	[BepInProcess("Void Crew.exe")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class BepinPlugin : BaseUnityPlugin
	{
		internal static ManualLogSource Log;

		private void Awake()
		{
			Log = ((BaseUnityPlugin)this).Logger;
			Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "18107.QuitOverreacting");
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin 18107.QuitOverreacting is loaded!");
		}
	}
	[HarmonyPatch(typeof(BreathController), "DetermineBreathType")]
	internal class BreathControllerPatch
	{
		private static void Prefix(CameraPostRenderSettings ___settings, ref float ____currentColdStrength, ref float ____currentHeatStrength, out float __state)
		{
			__state = ___settings.StartStrainAtOxygenLevel;
			___settings.StartStrainAtOxygenLevel = 0.001f;
			____currentColdStrength -= 0.99f;
			____currentHeatStrength -= 0.99f;
		}

		private static void Postfix(CameraPostRenderSettings ___settings, ref float ____currentColdStrength, ref float ____currentHeatStrength, float __state)
		{
			___settings.StartStrainAtOxygenLevel = __state;
			____currentColdStrength += 0.99f;
			____currentHeatStrength += 0.99f;
		}
	}
	[HarmonyPatch(typeof(Player), "Awake")]
	internal class HeatDeathPatch
	{
		private static void Postfix(Player __instance)
		{
			__instance.Parameters.DeathToHeat = 120f;
		}
	}
	public class MyPluginInfo
	{
		public const string PLUGIN_GUID = "18107.QuitOverreacting";

		public const string PLUGIN_NAME = "QuitOverreacting";

		public const string USERS_PLUGIN_NAME = "Quit Overreacting";

		public const string PLUGIN_VERSION = "0.0.1";

		public const string PLUGIN_DESCRIPTION = "Stops player breathing noises when the player isn't taking damage. Client Side.";

		public const string PLUGIN_ORIGINAL_AUTHOR = "18107";

		public const string PLUGIN_AUTHORS = "18107, Dragon";

		public const string PLUGIN_THUNDERSTORE_ID = "VoidCrewModdingTeam/Quit_Overreacting";
	}
	public class VoidManagerPlugin : VoidPlugin
	{
		public override MultiplayerType MPType => (MultiplayerType)8;

		public override string Author => "18107, Dragon";

		public override string Description => "Stops player breathing noises when the player isn't taking damage. Client Side.";

		public override string ThunderstoreID => "VoidCrewModdingTeam/Quit_Overreacting";
	}
}