using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BoneLib;
using BoneLib.BoneMenu;
using BoneLib.Notifications;
using GodLab;
using Il2CppSLZ.Marrow;
using MelonLoader;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(Main), "GodLab", "1.0.0", "zak_sao or 8esp on discord", null)]
[assembly: MelonGame("Stress Level Zero", "BONELAB")]
[assembly: AssemblyTitle("GodLab")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GodLab")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("0fecd4cf-7c6c-411b-99ec-eda0645f849d")]
[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 GodLab;
public class Main : MelonMod
{
private static bool isGodModeEnabled = true;
public override void OnInitializeMelon()
{
Hooking.OnLevelLoaded += OnLevelLoaded;
SetupBoneMenu();
}
private void SetupBoneMenu()
{
//IL_000b: Unknown result type (might be due to invalid IL or missing references)
//IL_001e: Unknown result type (might be due to invalid IL or missing references)
Page val = Page.Root.CreatePage("GodLab", Color.yellow, 0, true);
val.CreateBool("God Mode Enabled", Color.green, isGodModeEnabled, (Action<bool>)delegate(bool value)
{
//IL_0053: Unknown result type (might be due to invalid IL or missing references)
//IL_0058: Unknown result type (might be due to invalid IL or missing references)
//IL_005e: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_0068: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Unknown result type (might be due to invalid IL or missing references)
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_0078: Unknown result type (might be due to invalid IL or missing references)
//IL_007a: Unknown result type (might be due to invalid IL or missing references)
//IL_0084: Expected O, but got Unknown
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0022: Unknown result type (might be due to invalid IL or missing references)
//IL_0027: Unknown result type (might be due to invalid IL or missing references)
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0032: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
//IL_003c: Unknown result type (might be due to invalid IL or missing references)
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_0048: Expected O, but got Unknown
isGodModeEnabled = value;
if (isGodModeEnabled)
{
ApplyInfiniteHealth();
Notifier.Send(new Notification
{
Title = NotificationText.op_Implicit("GodLab Mod"),
Message = NotificationText.op_Implicit("God Mode: ON\nMade by 8esp add me on discord for any questions :D"),
Type = (NotificationType)0
});
}
else
{
DisableGodMode();
Notifier.Send(new Notification
{
Title = NotificationText.op_Implicit("GodLab Mod"),
Message = NotificationText.op_Implicit("God Mode: OFF\nMade by 8esp add me on discord for any questions :D"),
Type = (NotificationType)1
});
}
});
}
public override void OnUpdate()
{
if (isGodModeEnabled)
{
ApplyInfiniteHealth();
}
}
private void OnLevelLoaded(LevelInfo levelInfo)
{
if (isGodModeEnabled)
{
ApplyInfiniteHealth();
}
}
private static void ApplyInfiniteHealth()
{
if (!((Object)(object)Player.RigManager == (Object)null))
{
Player_Health componentInChildren = ((Component)Player.RigManager).GetComponentInChildren<Player_Health>();
if ((Object)(object)componentInChildren != (Object)null)
{
((Health)componentInChildren).healthMode = (HealthMode)0;
((Health)componentInChildren).max_Health = 999999f;
((Health)componentInChildren).curr_Health = 999999f;
}
}
}
private static void DisableGodMode()
{
if (!((Object)(object)Player.RigManager == (Object)null))
{
Player_Health componentInChildren = ((Component)Player.RigManager).GetComponentInChildren<Player_Health>();
if ((Object)(object)componentInChildren != (Object)null)
{
((Health)componentInChildren).healthMode = (HealthMode)1;
((Health)componentInChildren).max_Health = 100f;
((Health)componentInChildren).curr_Health = 100f;
}
}
}
}