using System; using System.Diagnostics; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BoneLib; using BoneLib.BoneMenu; using BoneLib.Notifications; using BoneMeme; using Il2CppSLZ.Marrow; using Il2CppSLZ.VRMK; using MelonLoader; using Microsoft.CodeAnalysis; using UnityEngine; using UnityEngine.Playables; [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), "BoneMeme", "1.0.0", "britt", null)] [assembly: MelonGame("Stress Level Zero", "BONELAB")] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("BoneMeme")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("BoneMeme")] [assembly: AssemblyTitle("BoneMeme")] [assembly: NeutralResourcesLanguage("en-US")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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 BoneMeme { public class Core : MelonMod { public override void OnInitializeMelon() { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0016: 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_0021: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Expected O, but got Unknown //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_0139: Unknown result type (might be due to invalid IL or missing references) //IL_0169: Unknown result type (might be due to invalid IL or missing references) //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_01c9: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0229: Unknown result type (might be due to invalid IL or missing references) //IL_0259: Unknown result type (might be due to invalid IL or missing references) //IL_0289: Unknown result type (might be due to invalid IL or missing references) //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_02cd: Unknown result type (might be due to invalid IL or missing references) //IL_02e0: Unknown result type (might be due to invalid IL or missing references) //IL_0310: Unknown result type (might be due to invalid IL or missing references) //IL_0340: Unknown result type (might be due to invalid IL or missing references) //IL_0370: Unknown result type (might be due to invalid IL or missing references) //IL_03a0: Unknown result type (might be due to invalid IL or missing references) //IL_03d0: Unknown result type (might be due to invalid IL or missing references) //IL_0400: Unknown result type (might be due to invalid IL or missing references) //IL_0430: Unknown result type (might be due to invalid IL or missing references) Notifier.Send(new Notification { Title = NotificationText.op_Implicit("Notice"), Message = NotificationText.op_Implicit("BoneMeme Loaded Without Error! Notifications Won't Be Sent For Some Options!") }); Page val = Page.Root.CreatePage("BoneMeme", Color.yellow, 0, true); val.CreateFunction("Give Ammo", Color.blue, (Action)delegate { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0052: 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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Expected O, but got Unknown AmmoInventory instance = AmmoInventory.Instance; instance.AddCartridge(instance.lightAmmoGroup, 2000); instance.AddCartridge(instance.heavyAmmoGroup, 2000); instance.AddCartridge(instance.mediumAmmoGroup, 2000); Notifier.Send(new Notification { Title = NotificationText.op_Implicit("Ammo"), Message = NotificationText.op_Implicit("Gave 2K Ammo To Player!") }); }); val.CreateFunction("Speed +10", Color.green, (Action)delegate { //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown Avatar avatar = Player.Avatar; avatar._speed += 10f; PlayableExtensions.SetSpeed(avatar, (double)avatar._speed); Notifier.Send(new Notification { Title = NotificationText.op_Implicit("Speed"), Message = NotificationText.op_Implicit("Gave +10 Speed To Player!") }); }); val.CreateFunction("Speed -10", Color.red, (Action)delegate { //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown Avatar avatar = Player.Avatar; avatar._speed -= 10f; PlayableExtensions.SetSpeed(avatar, (double)avatar._speed); Notifier.Send(new Notification { Title = NotificationText.op_Implicit("Speed"), Message = NotificationText.op_Implicit("Gave -10 Speed To Player!") }); }); val.CreateFunction("Make Held Gun Shoot 100+ Faster (Only a Set Not Add)", Color.green, (Action)delegate { GameObject objectInHand = Player.GetObjectInHand(Player.LeftHand); GameObject objectInHand2 = Player.GetObjectInHand(Player.RightHand); if (Object.op_Implicit((Object)(object)objectInHand) && (Object)(object)objectInHand2 != (Object)null) { bool flag = Object.op_Implicit((Object)(object)objectInHand2) && Object.op_Implicit((Object)(object)objectInHand.GetComponentInParent()); bool flag2 = true; MelonLogger.Msg(" Got Weapon! " + flag); PlayableExtensions.SetSpeed((FireMode)2, 100.0); } }); val.CreateFunction("Low Gravity", Color.blue, (Action)delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Physics.gravity = new Vector3(0f, -2f, 0f); }); val.CreateFunction("Turn Off Low Gravity", Color.red, (Action)delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Physics.gravity = new Vector3(0f, -10f, 0f); }); val.CreateFunction("Turn On High Gravity (Pulls Everything Up Slowly)", Color.yellow, (Action)delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Physics.gravity = new Vector3(0f, 1f, 0f); }); val.CreateFunction("Turn Off High Gravity", Color.green, (Action)delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Physics.gravity = new Vector3(0f, -10f, 0f); }); val.CreateFunction("Weight +1", Color.magenta, (Action)delegate { Avatar avatar = Player.Avatar; PlayableOutputExtensions.SetWeight(avatar, 2f); }); val.CreateFunction("Weight -2", Color.blue, (Action)delegate { Avatar avatar = Player.Avatar; PlayableOutputExtensions.SetWeight(avatar, -2f); }); val.CreateFunction("Increase Game Speed +1", Color.red, (Action)delegate { Time.timeScale += 2f; }); val.CreateFunction("Decrease Game Speed -1", Color.green, (Action)delegate { Time.timeScale -= 2f; }); Page val2 = val.CreatePage("DEBUG", Color.yellow, 0, true); val2.CreateFunction("Notfication Test", Color.red, (Action)delegate { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0016: 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_0021: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Expected O, but got Unknown Notifier.Send(new Notification { Title = NotificationText.op_Implicit("Debug"), Message = NotificationText.op_Implicit("TEST") }); }); Page val3 = val.CreatePage("More Player Options", Color.blue, 0, true); val3.CreateFunction("Turn On Lower Gravity", Color.magenta, (Action)delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Physics.gravity = new Vector3(0f, -1f, 0f); }); val3.CreateFunction("Turn Off Lower Gravity", Color.black, (Action)delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Physics.gravity = new Vector3(0f, -10f, 0f); }); val3.CreateFunction("Scale +1", Color.magenta, (Action)delegate { //IL_000e: 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) Avatar avatar = Player.Avatar; Transform transform = ((Component)avatar).transform; transform.localScale += new Vector3(1f, 1f, 1f); }); val3.CreateFunction("Scale -1", Color.red, (Action)delegate { //IL_000e: 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) Avatar avatar = Player.Avatar; Transform transform = ((Component)avatar).transform; transform.localScale -= new Vector3(1f, 1f, 1f); }); val3.CreateFunction("Mass -10 (very broken)", Color.yellow, (Action)delegate { Avatar avatar = Player.Avatar; avatar._massTotal -= 10f; }); val3.CreateFunction("Mass +10", Color.green, (Action)delegate { Avatar avatar = Player.Avatar; avatar._massTotal += 10f; }); val3.CreateFunction("Turn on Faster High Gravity", Color.cyan, (Action)delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Physics.gravity = new Vector3(0f, 2f, 0f); }); val3.CreateFunction("Turn Off Faster High Gravity", Color.gray, (Action)delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Physics.gravity = new Vector3(0f, -10f, 0f); }); } } }