Decompiled source of InfMortality v1.0.0

Mods/InfHealthMod.dll

Decompiled 3 days ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using HarmonyLib;
using Il2CppSLZ.Marrow;
using MelonLoader;
using MyCoolMod;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(Core), "InfHealth", "1.0.0", "Voxel", null)]
[assembly: MelonGame("Stress Level Zero", "BONELAB")]
[assembly: AssemblyTitle("InfHealthMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("InfHealthMod")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("8fcf17d0-e8d0-460b-bb4b-bc6c3389c0ca")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace MyCoolMod;

public class Core : MelonMod
{
	public override void OnInitializeMelon()
	{
		//IL_0011: Unknown result type (might be due to invalid IL or missing references)
		//IL_0017: Expected O, but got Unknown
		MelonLogger.Msg("MOD LOADED");
		Harmony val = new Harmony("infhealth.vxgt");
		val.PatchAll();
	}
}
[HarmonyPatch]
public class NoDamagePatch
{
	private static MethodBase TargetMethod()
	{
		Type typeFromHandle = typeof(Player_Health);
		return typeFromHandle.GetMethod("TAKEDAMAGE", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
	}

	private static bool Prefix(object __instance, float __0)
	{
		MelonLogger.Msg("Blocking Damn");
		return false;
	}
}