Decompiled source of InfiniteOxygen v1.0.0

InfiniteOxygenContentWarning.dll

Decompiled 7 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("InfiniteOxygenContentWarning")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("InfiniteOxygenContentWarning")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("34b69ce6-91ec-4d67-9a2b-2a5ac8c701f4")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace InfiniteOxygenContentWarning;

[BepInPlugin("komen205.InfiniteOxygen", "InfiniteOxygen", "1.0.0")]
public class InfiniteOxygen : BaseUnityPlugin
{
	[HarmonyPatch(typeof(PlayerData))]
	internal class PlayerDataPatch
	{
		[HarmonyPatch("UpdateValues")]
		[HarmonyPrefix]
		private static void IsGameFullPatch(ref float ___remainingOxygen)
		{
			___remainingOxygen = 500f;
		}
	}

	private const string modGUID = "komen205.InfiniteOxygen";

	private const string modName = "InfiniteOxygen";

	private const string modVersion = "1.0.0";

	private readonly Harmony harmony = new Harmony("komen205.InfiniteOxygen");

	private void Awake()
	{
		harmony.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin komen205.InfiniteOxygen is loaded!");
	}
}