The BepInEx console will not appear when launching like it does for other games on Thunderstore (you can turn it back on in your BepInEx.cfg file). If your PEAK crashes on startup, add -dx12 to your launch parameters.
Decompiled source of AbsoluteChaos v0.1.0
plugins/com.github.steampunk0108.HardestPeakMod.dll
Decompiled a week agousing System; using System.Collections; using System.Collections.Generic; 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 HarmonyLib; using Microsoft.CodeAnalysis; using Photon.Pun; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("com.github.steampunk0108.HardestPeakMod")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("0.1.0.0")] [assembly: AssemblyInformationalVersion("0.1.0")] [assembly: AssemblyProduct("com.github.steampunk0108.HardestPeakMod")] [assembly: AssemblyTitle("HardestPeakMod")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.1.0.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.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } [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 BepInEx { [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] [Conditional("CodeGeneration")] internal sealed class BepInAutoPluginAttribute : Attribute { public BepInAutoPluginAttribute(string? id = null, string? name = null, string? version = null) { } } } namespace BepInEx.Preloader.Core.Patching { [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] [Conditional("CodeGeneration")] internal sealed class PatcherAutoPluginAttribute : Attribute { public PatcherAutoPluginAttribute(string? id = null, string? name = null, string? version = null) { } } } namespace HardestPeakMod { [BepInPlugin("com.github.steampunk0108.HardestPeakMod", "HardestPeakMod", "0.1.0")] public class Plugin : BaseUnityPlugin { private readonly Harmony _harmony = new Harmony("com.github.steampunk0108.HardestPeakMod"); public const string Id = "com.github.steampunk0108.HardestPeakMod"; internal static ManualLogSource Log { get; private set; } public static string Name => "HardestPeakMod"; public static string Version => "0.1.0"; private void Awake() { Log = ((BaseUnityPlugin)this).Logger; Log.LogInfo((object)("Plugin " + Name + " is loaded!")); _harmony.PatchAll(Assembly.GetExecutingAssembly()); } } } namespace HardestPeakMod.Patches { [HarmonyPatch(typeof(Bonkable))] internal class BonkablePatch { [HarmonyPatch("OnCollisionEnter")] [HarmonyPostfix] private static void allBonk(Bonkable __instance) { __instance.minBonkVelocity = 0f; __instance.bonkForce = 1000f; } } [HarmonyPatch(typeof(CharacterClimbing))] internal class CharacterClimbingPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void ClimbSpeed(CharacterClimbing __instance) { __instance.climbSpeedMod = 0.75f; } } [HarmonyPatch(typeof(CharacterData))] internal class CharacterDataPatch : MonoBehaviour { [CompilerGenerated] private sealed class <SpawnTornadoes>d__1 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public CharacterData __instance; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <SpawnTornadoes>d__1(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <>1__state = -2; } private bool MoveNext() { //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_004e: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Expected O, but got Unknown int num = <>1__state; if (num != 0) { if (num != 1) { return false; } <>1__state = -1; } else { <>1__state = -1; } Vector3 position = ((Component)__instance.character).transform.position; float num2 = Random.Range(-100, 100); float num3 = Random.Range(-100, 100); PhotonNetwork.Instantiate("Tornado", __instance.groundPos + new Vector3(num2, 0f, num3), Quaternion.identity, (byte)0, (object[])null); <>2__current = (object)new WaitForSeconds(50f); <>1__state = 1; return true; } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } [CompilerGenerated] private sealed class <SpawnTumble>d__2 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public CharacterData __instance; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <SpawnTumble>d__2(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <>1__state = -2; } private bool MoveNext() { //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_004e: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Expected O, but got Unknown int num = <>1__state; if (num != 0) { if (num != 1) { return false; } <>1__state = -1; } else { <>1__state = -1; } Vector3 position = ((Component)__instance.character).transform.position; float num2 = Random.Range(-100, 100); float num3 = Random.Range(-100, 100); PhotonNetwork.Instantiate("TumbleWeed", __instance.groundPos + new Vector3(num2, 17f, num3), Quaternion.identity, (byte)0, (object[])null); <>2__current = (object)new WaitForSeconds(2.5f); <>1__state = 1; return true; } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } [CompilerGenerated] private sealed class <Spawndyn>d__3 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public CharacterData __instance; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <Spawndyn>d__3(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <>1__state = -2; } private bool MoveNext() { //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_004e: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Expected O, but got Unknown int num = <>1__state; if (num != 0) { if (num != 1) { return false; } <>1__state = -1; } else { <>1__state = -1; } Vector3 position = ((Component)__instance.character).transform.position; float num2 = Random.Range(-50, 50); float num3 = Random.Range(-50, 50); PhotonNetwork.Instantiate("0_Items/Dynamite", __instance.groundPos + new Vector3(num2, 2f, num3), Quaternion.identity, (byte)0, (object[])null); <>2__current = (object)new WaitForSeconds(3f); <>1__state = 1; return true; } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } [HarmonyPatch("Start")] [HarmonyPostfix] private static void TornadoSpawning(CharacterData __instance) { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) ((MonoBehaviour)__instance).StartCoroutine(SpawnTornadoes(__instance, ((Component)__instance.character).transform.position)); ((MonoBehaviour)__instance).StartCoroutine(SpawnTumble(__instance, ((Component)__instance.character).transform.position)); ((MonoBehaviour)__instance).StartCoroutine(Spawndyn(__instance, ((Component)__instance.character).transform.position)); } [IteratorStateMachine(typeof(<SpawnTornadoes>d__1))] private static IEnumerator SpawnTornadoes(CharacterData __instance, Vector3 Pos) { //yield-return decompiler failed: Unexpected instruction in Iterator.Dispose() return new <SpawnTornadoes>d__1(0) { __instance = __instance }; } [IteratorStateMachine(typeof(<SpawnTumble>d__2))] private static IEnumerator SpawnTumble(CharacterData __instance, Vector3 Pos) { //yield-return decompiler failed: Unexpected instruction in Iterator.Dispose() return new <SpawnTumble>d__2(0) { __instance = __instance }; } [IteratorStateMachine(typeof(<Spawndyn>d__3))] private static IEnumerator Spawndyn(CharacterData __instance, Vector3 Pos) { //yield-return decompiler failed: Unexpected instruction in Iterator.Dispose() return new <Spawndyn>d__3(0) { __instance = __instance }; } } [HarmonyPatch(typeof(CharacterMovement))] internal class CharacterMovementPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void speed(CharacterMovement __instance) { __instance.movementForce = 25f; } } [HarmonyPatch(typeof(Dynamite))] internal class DynamitePatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void allBonk(Dynamite __instance) { __instance.startingFuseTime = 1.5f; } } [HarmonyPatch(typeof(Fog))] internal class FogPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void fogspeed(Fog __instance) { __instance.fogSpeed = 7f; } } [HarmonyPatch(typeof(ScoutCannon))] internal class ScoutCannonPatch { [HarmonyPatch("FixedUpdate")] [HarmonyPostfix] private static void scoutcan(ScoutCannon __instance) { __instance.launchForce = Random.Range(-3000, 10500); } } [HarmonyPatch(typeof(ScoutmasterSpawner))] internal class ScoutMasterSpawnerPatch { [HarmonyPostfix] private static void Update(ScoutmasterSpawner __instance) { __instance.SpawnScoutmaster(); } } [HarmonyPatch(typeof(TumbleWeed))] internal class TumbleWeedPatch { [HarmonyPatch("FixedUpdate")] [HarmonyPostfix] private static void tumblepow(TumbleWeed __instance) { __instance.powerMultiplier = 1000f; __instance.rollForce = 1000f; __instance.collisionForce = 1000f; __instance.originalScale = 5f; } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }