using System; using System.CodeDom.Compiler; using System.Collections; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using Agents; using BepInEx; using BepInEx.Unity.IL2CPP; using BepInEx.Unity.IL2CPP.Utils.Collections; using Enemies; using GTFO.API; using Gear; using HarmonyLib; using Il2CppSystem; using Il2CppSystem.Collections.Generic; using LevelGeneration; using Microsoft.CodeAnalysis; using Player; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("SuperBio")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("SuperBio")] [assembly: AssemblyTitle("SuperBio")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] 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; } } } namespace SuperBio { [BepInPlugin("SuperBio", "SuperBio", "0.0.1")] public class Plugin : BasePlugin { [HarmonyPatch] [HarmonyPatch(typeof(PlayerAgent), "Update")] private class SuperBio : MonoBehaviour { private static float lasttag = Time.realtimeSinceStartup; public static void Initialize() { if (((Component)PlayerManager.GetLocalPlayerAgent().Inventory).GetComponentsInChildren() != null) { CoroutineManager.StartCoroutine(CollectionExtensions.WrapToIl2Cpp(SuperizeBio()), (Action)null); } } private static IEnumerator SuperizeBio() { Debug.Log(Object.op_Implicit("SuperBio - active.")); lasttag = Time.realtimeSinceStartup; PlayerManager.GetLocalPlayerAgent().Sync.WantsToWieldSlot((InventorySlot)3, false); PlayerManager.GetLocalPlayerAgent().Sync.WantsToWieldSlot((InventorySlot)10, false); while (true) { if (Time.realtimeSinceStartup - lasttag > 7f) { Enumerator enumerator = Builder.CurrentFloor.allZones.GetEnumerator(); while (enumerator.MoveNext()) { Enumerator enumerator2 = enumerator.Current.m_areas.GetEnumerator(); while (enumerator2.MoveNext()) { Enumerator enumerator3 = enumerator2.Current.m_courseNode.m_enemiesInNode.GetEnumerator(); while (enumerator3.MoveNext()) { EnemyAgent current = enumerator3.Current; if (((int)((AgentAI)current.AI).Mode == 1 || (int)((AgentAI)current.AI).Mode == 2 || (int)((AgentAI)current.AI).Mode == 3) && Vector3.Distance(current.Position, ((Agent)PlayerManager.GetLocalPlayerAgent()).Position) < 75f) { ToolSyncManager.WantToTagEnemy(current); lasttag = Time.realtimeSinceStartup; } } } } } yield return (object)new WaitForSeconds(7f); } } } public override void Load() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) Harmony val = new Harmony("SuperBio"); EventAPI.OnExpeditionStarted += SuperBio.Initialize; val.PatchAll(); } } [GeneratedCode("VersionInfoGenerator", "2.0.0+git50a4b1a-master")] [CompilerGenerated] internal static class VersionInfo { public const string RootNamespace = "SuperBio"; public const string Version = "1.0.0"; public const string VersionPrerelease = null; public const string VersionMetadata = null; public const string SemVer = "1.0.0"; public const string GitRevShort = null; public const string GitRevLong = null; public const string GitBranch = null; public const string GitTag = null; public const bool GitIsDirty = false; } }